@Jpreston... I was wondering how you configured your EntityManagerFactory and more specifically the datasource that that bean requires...
@Jpreston... I was wondering how you configured your EntityManagerFactory and more specifically the datasource that that bean requires...
Hans Westerbeek
Software Engineer
Nevermind, did it like this:
where 'transactions-optional' is the same as the name attribute of the persistence-unit tag in persistence.xmlCode:<bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" lazy-init="true"> <property name="persistenceUnitName" value="transactions-optional" /> </bean> <bean name="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean>
Last edited by mirror303; Mar 9th, 2010 at 06:09 PM.
Hans Westerbeek
Software Engineer
Does anybody know if the source code for the expense application demoed at the Google IO is available for download, It would give a lot of insight on how to do roo development og Google App Engine Java.
Thanks
The final version of the expenses application is not available for download as it's a work-in-progress as we improve widgets and features in the GWT 2.1 / Roo 1.1 integration. However, in the Roo 1.1.0.M1 samples directory you will find expenses.roo. This shows you what we used to start building the expenses application and can be executed in Roo just by typing "script expenses.roo" and pressing enter (just be sure you're in an empty directory).
I have got the 1.1.0M2 version of ROO and successfully ran a simple GWT application. When I tried to move my app to GWT/ROO I realized that roo+ GWT doesnt support parent-child relationship. FWOOOOP!
Please wait for Roo 1.1M3 with GWT 2.1M3 for improvements in relationship handling - by end August
I'm brand new to ROO. I brought up the expense app using ROO 1.1.0.RC1
And I made an attempt to change the persistence.xml to use JPA for the entities I'm going to create next (this is where I'm coming from: http://code.google.com/appengine/doc.../usingjpa.html):
I fired it up in STS 2.5.0.RC1 and it gave me a class not found: org.datanucleus.store.appengine.jpa.DatastorePersi stenceProviderCode:<?xml version="1.0" encoding="UTF-8" ?> <persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd" version="1.0"> <persistence-unit name="transactions-optional"> <provider>org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider</provider> <properties> <property name="datanucleus.NontransactionalRead" value="true" /> <property name="datanucleus.NontransactionalWrite" value="true" /> <property name="datanucleus.ConnectionURL" value="appengine" /> </properties> </persistence-unit> </persistence>
I know I'm probably missing a ton of stuff here, but could someone give me a hint on what is need to get it to play nice with the way GAE works today? Or let me know if this isn't supported and I shouldn't bother trying.
Last edited by donut; Oct 24th, 2010 at 05:03 PM.