Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which Java database API is easiest to use?

Tags:

java

database

api

I am coming back to Java from Ruby and ActiveRecord and want to use something as easy as ActiveRecord in Ruby. What options do I have?

like image 565
yazz.com Avatar asked Sep 22 '10 17:09

yazz.com


2 Answers

There is a project that a colleague recently released called ActiveJDBC that is an implementation of ActiveRecord for Java.

like image 86
Larry Smithmier Avatar answered Oct 02 '22 17:10

Larry Smithmier


It'll probably some sort of Object Relational Mapping framework you end up using. Grails (a Java Rails like framework) has GORM:

http://www.grails.org/GORM

If you're not using a web framework like that then it'll prob. be some sort of ORM framework - Hibernate, OpenJPA etc...

http://www.hibernate.org/

If you don't want to do the full heavyweight ORM way then look at something like MyBatis (used to be iBatis) which has SQLMaps:

http://www.mybatis.org/

like image 34
Jon Avatar answered Oct 02 '22 19:10

Jon