Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Simone Tripodi
On Thu, Jan 19, 2012 at 9:34 PM, Gary Gregory wrote: > On Thu, Jan 19, 2012 at 3:32 PM, Simone Tripodi > wrote: > >> I personally use MyBatis[1] - which is DbUtils with superpowers >> > > MyBatis does not have super powers, you have super powers Simo ;) > lol, my only superpower is the ability o

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Thomas Vandahl
On 19.01.12 21:37, Moandji Ezana wrote: > Interesting. I've never used MyBatis, but U've read the docs and it didn't > really seem to help write less SQL. > > Do you all only use DbUtils for smaller projects, then? I prefer Torque (db.apache.org/torque). Nice, fast and simple. And no SQL to write

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Gary Gregory
On Thu, Jan 19, 2012 at 3:37 PM, Moandji Ezana wrote: > Interesting. I've never used MyBatis, but U've read the docs and it didn't > really seem to help write less SQL. > > Do you all only use DbUtils for smaller projects, then? > Personally, I use either raw JDBC with custom frameworks for very

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Moandji Ezana
Interesting. I've never used MyBatis, but U've read the docs and it didn't really seem to help write less SQL. Do you all only use DbUtils for smaller projects, then? Moandji On 19 Jan 2012 22:32, "Simone Tripodi" wrote: > I personally use MyBatis[1] - which is DbUtils with superpowers > > -Sim

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Gary Gregory
On Thu, Jan 19, 2012 at 3:32 PM, Simone Tripodi wrote: > I personally use MyBatis[1] - which is DbUtils with superpowers > MyBatis does not have super powers, you have super powers Simo ;) Gary > -Simo > > [1] http://www.mybatis.org > > http://people.apache.org/~simonetripodi/ > http://simonet

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Simone Tripodi
I personally use MyBatis[1] - which is DbUtils with superpowers -Simo [1] http://www.mybatis.org http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Thu, Jan 19, 2012 at 9:28 PM, Moandji Ezana wrote: > On 1

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Moandji Ezana
On 19 Jan 2012 20:26, "Gary Gregory" wrote: > > So why not use Hibernate or any JPA provider? > > Gary Plenty of reasons, such as the library's simplicity and the control it affords. And I don't want the lazy-loading, 1st-level cache, etc. it provides. However, there are 2 big missing pieces: re

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Gary Gregory
On Thu, Jan 19, 2012 at 12:08 PM, Moandji Ezana wrote: > On Thu, Jan 19, 2012 at 3:52 PM, William Speirs > wrote: > > > No, JPA hasn't been added to DbUtils in any way. I'm not familiar with > JPA, > > could you give an example of what you'd like to see in DbUtils? > > > > I don't want it in DbU

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Moandji Ezana
On Thu, Jan 19, 2012 at 3:52 PM, William Speirs wrote: > No, JPA hasn't been added to DbUtils in any way. I'm not familiar with JPA, > could you give an example of what you'd like to see in DbUtils? > I don't want it in DbUtils, it can be built purely as a 3rd party extension. I was just wonderi

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Simone Tripodi
Hi, from the commons-dbutils HomePage there is a statement: +--+ DbUtils is not: * An Object/Relational bridge - there are plenty of good O/R tools already. DbUtils is for developers looking to use JDBC without all the mundane pieces. * A Data Access Object (DAO)

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread William Speirs
No, JPA hasn't been added to DbUtils in any way. I'm not familiar with JPA, could you give an example of what you'd like to see in DbUtils? You can always open a JIRA enhancement as well. Thanks! Bill- On Thu, Jan 19, 2012 at 8:26 AM, Moandji Ezana wrote: > Hello, > > Has anyone extended DbUt

Re: [dbutils] Mapping from JPA annotations

2012-01-19 Thread Moandji Ezana
Hello, Has anyone extended DbUtils to use JPA annotations? I've partially written a BeanProcessor that does so, but thought it might already exist. I did so in the context of wanting DbUtils's simplicity, but without having to write quite as much boilerplate SQL. Also, this could lead to a nice