You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Matt Raible <ma...@raibledesigns.com> on 2007/05/25 18:20:26 UTC

Re: svn commit: r541710 - /roller/trunk/src/META-INF/persistence.xml

The spaces seem kinda strange?

<mapping-file>org/apache/roller/pojos/AutoPingData.orm.xml
      </mapping-file>

On 5/25/07, agilliland@apache.org <ag...@apache.org> wrote:
> Author: agilliland
> Date: Fri May 25 09:14:24 2007
> New Revision: 541710
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=541710
> Log:
> need persistence.xml file
>
>
> Added:
>     roller/trunk/src/META-INF/persistence.xml
>
> Added: roller/trunk/src/META-INF/persistence.xml
> URL: http://svn.apache.org/viewvc/roller/trunk/src/META-INF/persistence.xml?view=auto&rev=541710
> ==============================================================================
> --- roller/trunk/src/META-INF/persistence.xml (added)
> +++ roller/trunk/src/META-INF/persistence.xml Fri May 25 09:14:24 2007
> @@ -0,0 +1,34 @@
> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0">
> +
> +    <persistence-unit name ="RollerPU" transaction-type = "RESOURCE_LOCAL">
> +        <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider>
> +        <!--
> +        <jta-data-source>java:comp/env/jdbc/rollerdb</jta-data-source>
> +        <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider>
> +        -->
> +        <mapping-file>org/apache/roller/pojos/AutoPingData.orm.xml                   </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/BookmarkData.orm.xml                   </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/CommentData.orm.xml                    </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/EntryAttributeData.orm.xml             </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/FolderData.orm.xml                     </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/HitCountData.orm.xml                   </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/ObjectAuditData.orm.xml                </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/PermissionsData.orm.xml                </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/PingCategoryRestrictionData.orm.xml    </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/PingQueueEntryData.orm.xml             </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/PingTargetData.orm.xml                 </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/RefererData.orm.xml                    </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/RoleData.orm.xml                       </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/RollerConfigData.orm.xml               </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/RollerPropertyData.orm.xml             </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/TaskLockData.orm.xml                   </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/UserData.orm.xml                       </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/WeblogCategoryData.orm.xml             </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/WeblogEntryData.orm.xml                </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/WeblogEntryTagAggregateData.orm.xml    </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/WeblogEntryTagData.orm.xml             </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/WeblogTemplate.orm.xml                 </mapping-file>
> +        <mapping-file>org/apache/roller/pojos/WebsiteData.orm.xml                    </mapping-file>
> +    </persistence-unit>
> +
> +</persistence>
>
>
>


-- 
http://raibledesigns.com

Re: svn commit: r541710 - /roller/trunk/src/META-INF/persistence.xml

Posted by Craig L Russell <Cr...@Sun.COM>.
For efficiency, you will also want to include a non-jta datasource.  
This allows nontransactional queries and optimistic data accesses.

Craig

On May 25, 2007, at 9:24 AM, Allen Gilliland wrote:

> I agree, the formatting does look wacky, but I didn't write it I  
> just copied it from the jpa branch so that my trunk build would  
> work again.
>
> -- Allen
>
>
> Matt Raible wrote:
>> The spaces seem kinda strange?
>> <mapping-file>org/apache/roller/pojos/AutoPingData.orm.xml
>>      </mapping-file>
>> On 5/25/07, agilliland@apache.org <ag...@apache.org> wrote:
>>> Author: agilliland
>>> Date: Fri May 25 09:14:24 2007
>>> New Revision: 541710
>>>
>>> URL: http://svn.apache.org/viewvc?view=rev&rev=541710
>>> Log:
>>> need persistence.xml file
>>>
>>>
>>> Added:
>>>     roller/trunk/src/META-INF/persistence.xml
>>>
>>> Added: roller/trunk/src/META-INF/persistence.xml
>>> URL: http://svn.apache.org/viewvc/roller/trunk/src/META-INF/ 
>>> persistence.xml?view=auto&rev=541710
>>> ==================================================================== 
>>> ==========
>>> --- roller/trunk/src/META-INF/persistence.xml (added)
>>> +++ roller/trunk/src/META-INF/persistence.xml Fri May 25 09:14:24  
>>> 2007
>>> @@ -0,0 +1,34 @@
>>> +<persistence xmlns="http://java.sun.com/xml/ns/persistence"  
>>> version="1.0">
>>> +
>>> +    <persistence-unit name ="RollerPU" transaction-type =  
>>> "RESOURCE_LOCAL">
>>> +         
>>> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</ 
>>> provider>
>>> +        <!--
>>> +        <jta-data-source>java:comp/env/jdbc/rollerdb</jta-data- 
>>> source>
>>> +         
>>> <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryPro 
>>> vider</provider>
>>> +        -->
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> AutoPingData.orm.xml                   </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> BookmarkData.orm.xml                   </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> CommentData.orm.xml                    </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> EntryAttributeData.orm.xml             </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> FolderData.orm.xml                     </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> HitCountData.orm.xml                   </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> ObjectAuditData.orm.xml                </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> PermissionsData.orm.xml                </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> PingCategoryRestrictionData.orm.xml    </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> PingQueueEntryData.orm.xml             </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> PingTargetData.orm.xml                 </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> RefererData.orm.xml                    </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> RoleData.orm.xml                       </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> RollerConfigData.orm.xml               </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> RollerPropertyData.orm.xml             </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> TaskLockData.orm.xml                   </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> UserData.orm.xml                       </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> WeblogCategoryData.orm.xml             </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> WeblogEntryData.orm.xml                </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> WeblogEntryTagAggregateData.orm.xml    </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> WeblogEntryTagData.orm.xml             </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> WeblogTemplate.orm.xml                 </mapping-file>
>>> +        <mapping-file>org/apache/roller/pojos/ 
>>> WebsiteData.orm.xml                    </mapping-file>
>>> +    </persistence-unit>
>>> +
>>> +</persistence>
>>>
>>>
>>>

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: svn commit: r541710 - /roller/trunk/src/META-INF/persistence.xml

Posted by Allen Gilliland <al...@sun.com>.
I agree, the formatting does look wacky, but I didn't write it I just 
copied it from the jpa branch so that my trunk build would work again.

-- Allen


Matt Raible wrote:
> The spaces seem kinda strange?
> 
> <mapping-file>org/apache/roller/pojos/AutoPingData.orm.xml
>      </mapping-file>
> 
> On 5/25/07, agilliland@apache.org <ag...@apache.org> wrote:
>> Author: agilliland
>> Date: Fri May 25 09:14:24 2007
>> New Revision: 541710
>>
>> URL: http://svn.apache.org/viewvc?view=rev&rev=541710
>> Log:
>> need persistence.xml file
>>
>>
>> Added:
>>     roller/trunk/src/META-INF/persistence.xml
>>
>> Added: roller/trunk/src/META-INF/persistence.xml
>> URL: 
>> http://svn.apache.org/viewvc/roller/trunk/src/META-INF/persistence.xml?view=auto&rev=541710 
>>
>> ============================================================================== 
>>
>> --- roller/trunk/src/META-INF/persistence.xml (added)
>> +++ roller/trunk/src/META-INF/persistence.xml Fri May 25 09:14:24 2007
>> @@ -0,0 +1,34 @@
>> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" 
>> version="1.0">
>> +
>> +    <persistence-unit name ="RollerPU" transaction-type = 
>> "RESOURCE_LOCAL">
>> +        
>> <provider>org.apache.openjpa.persistence.PersistenceProviderImpl</provider> 
>>
>> +        <!--
>> +        <jta-data-source>java:comp/env/jdbc/rollerdb</jta-data-source>
>> +        
>> <provider>oracle.toplink.essentials.ejb.cmp3.EntityManagerFactoryProvider</provider> 
>>
>> +        -->
>> +        
>> <mapping-file>org/apache/roller/pojos/AutoPingData.orm.xml                   
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/BookmarkData.orm.xml                   
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/CommentData.orm.xml                    
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/EntryAttributeData.orm.xml             
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/FolderData.orm.xml                     
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/HitCountData.orm.xml                   
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/ObjectAuditData.orm.xml                
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/PermissionsData.orm.xml                
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/PingCategoryRestrictionData.orm.xml    
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/PingQueueEntryData.orm.xml             
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/PingTargetData.orm.xml                 
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/RefererData.orm.xml                    
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/RoleData.orm.xml                       
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/RollerConfigData.orm.xml               
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/RollerPropertyData.orm.xml             
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/TaskLockData.orm.xml                   
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/UserData.orm.xml                       
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/WeblogCategoryData.orm.xml             
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/WeblogEntryData.orm.xml                
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/WeblogEntryTagAggregateData.orm.xml    
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/WeblogEntryTagData.orm.xml             
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/WeblogTemplate.orm.xml                 
>> </mapping-file>
>> +        
>> <mapping-file>org/apache/roller/pojos/WebsiteData.orm.xml                    
>> </mapping-file>
>> +    </persistence-unit>
>> +
>> +</persistence>
>>
>>
>>
> 
>