News for hackers. Stuff that matters.

Ask HN: SQLAlchemy for Java?

I have used SQLAlchemy extensively and love it. Now I find myself a stranger in a strange land and I was wondering if anybody knew of a similarly awesome database abstraction toolkit for Java.

Thanks!

( 2 comments | 3 points | on HN )
Re:Ask HN: SQLAlchemy for Java? by srnm on Saturday January 03, 2009 @09:58AM (#418390)
I can recommend carbonado, http://carbonado.sourceforge.net/ , if you don't want/need a full ORM, and prefer something similar to activerecord. It doesn't hide the relational model, and has just the right level of abstraction with a nice to use API.

http://jdbi.org/ is an even lighter weight wrapper over JDBC.

If you need a full-featured ORM then http://www.hibernate.org/, or another JPA implementation, perhaps http://www.eclipse.org/eclipselink/ or http://www.datanucleus.org/ are worth a look.

Re:Ask HN: SQLAlchemy for Java? by marketer on Friday January 02, 2009 @08:33PM (#418000)
The best you'll find is hibernate -- http://www.hibernate.org/ . It's not exactly like SQLAlchemy because Java is statically typed, but it's better than using the Java db layer directly.