Re: JPA alternatives?

2011-09-13 Thread maticpetek
Last three year we are using iBatis and MyBatis with GWT project and we are very happy with it. Just must be a programmer that loves writing SQL.. Regards, Matic -- GWT stuff twitter - http://twitter.com/#!/gwtstuff -- You received this message because you are subscribed

JPA alternatives?

2011-09-12 Thread Jens
In a current project I use JPA for persistence. JPA works and you can have a fast start with it but it has its pitfalls. For example having lazy attributes sounds nice but as soon as you have more complex logic and queries you want to fetch these properties eagerly to avoid hundreds of querys

Re: JPA alternatives?

2011-09-12 Thread Juan Pablo Gardella
jdbc 2011/9/12 Jens jens.nehlme...@gmail.com In a current project I use JPA for persistence. JPA works and you can have a fast start with it but it has its pitfalls. For example having lazy attributes sounds nice but as soon as you have more complex logic and queries you want to fetch these

Re: JPA alternatives?

2011-09-12 Thread Y2i
When you use JDBC, what do you use to map between the database records and Java objects? Also, what do you do to deal with optimistic concurrency control? JPA automatically uses versioning. Do you have to implement the same mechanism by hand or are there tools that help with this? -- You

Re: JPA alternatives?

2011-09-12 Thread J.Ganesan
If I may suggest, please try out DataStoreGwt. It does lazy loading, enables optimistic concurrency control from client side and does automatic versioning of objects. J.Ganesan www.DataStoreGwt.com On Sep 12, 7:03 pm, Y2i yur...@gmail.com wrote: When you use JDBC, what do you use to map

Re: JPA alternatives?

2011-09-12 Thread Paul Stockley
Take a look at mybatis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nDaz5-aYr0EJ. To post to this group, send email to

Re: JPA alternatives?

2011-09-12 Thread Thomas Broyer
Never used them, but Spring's JdbcTemplate with RowMapper, and MyBatis seem appealing (for the ORM part; AFAIK, versionning has to be done by hand, but I suspect this is by design) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view

Re: JPA alternatives?

2011-09-12 Thread Y2i
Does DataStoreGwt support WITH RECURSIVE sql features? I need to efficiently traverse large graphs within the database before returning small result sets as opposed to returning large result sets and traversing them on either client or server. -- You received this message because you are

Re: JPA alternatives?

2011-09-12 Thread Y2i
Thanks Thomas, these look interesting. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/7N_Nj9mzUXMJ. To post to this group, send email to

Re: JPA alternatives?

2011-09-12 Thread Jens
Haven't looked into it in detail but I think it doesn't match my needs. I can not use an embedded database on server side (clustered application server / database environment). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this

Re: JPA alternatives?

2011-09-12 Thread Juan Pablo Gardella
If you wan't have problem with lazy loading, N+1; you must write a custom jpaql query to fetch the properties do you need. You have N queries, so q1 fetch X properties, q2 Y properties. This is the way I found to resolve the problems that you mark with JPA. Always you will final must tunning your

Re: JPA alternatives?

2011-09-12 Thread Jens
Thanks I'll take a look at it. Hopefully I can dynamically set a DataSource to mybatis and don't have to configure them statically in xml. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit

Re: JPA alternatives?

2011-09-12 Thread Ashton Thomas
I use Spring/JDBC/MyBatis Like it so far On Sep 12, 10:55 am, Jens jens.nehlme...@gmail.com wrote: Thanks I'll take a look at it. Hopefully I can dynamically set a DataSource to mybatis and don't have to configure them statically in xml. -- J. -- You received this message because you are

Re: JPA alternatives?

2011-09-12 Thread Paul Stockley
That should be possible. I also use mybatis generator to generate all the maps/dto's. I created a plugin because I needed to customize the code generated to support GWT RPC plus some application specific stuff. It would be pretty easy to add optimistic locking automatically. -- You received

Re: JPA alternatives?

2011-09-12 Thread yur...@gmail.com
Thanks Paul. I'm currently sticking with Jetty+JPA but Spring and MyBatis is something I'd like to look into if it is possible to setup debugging without GWT re-compilation. On Mon, Sep 12, 2011 at 7:43 PM, Paul Stockley pstockl...@gmail.com wrote: That should be possible. I also use mybatis