Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ibatis and schema creation

 
Geoff Thé
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One of the features we like about hibernate is that it will automatically generate a schema for you basic on your mapping files -- does Ibatis have similar facilities?
 
Clinton Begin
author
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, iBATIS does not generate your schema for you (unless Abator does it, which you can look into).

But honestly, if I were in a situation where I was able to build my own database schema from scratch, I'd probably use Hibernate anyway.

iBATIS was built for what I call "red pill" projects -- or real projects. ;-)

I work mostly on "enterprise" systems I've never had the luxury of having full control over the database design, let alone the luxury to generate the schema. In almost all cases the database already exists and in most cases it's not even a single database.

So yes, if you're generating the schema, use Hibernate. If you ever run into an existing enterprise or legacy system, use iBATIS. That said, I do know a lot of people who choose iBATIS even when they are starting from scratch.

Cheers,
Clinton
 
Salman Khattak
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
.. and that is what I like about iBatis.

Make your own schema's and have as much fine tuned, intricate queries as you like. Go wild! iBatis will map the result-set to your objects with lightning speed... as long as you have defined the mapping correctly!

also there is abator
[ December 05, 2006: Message edited by: Salman Khattak ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Geoff The",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That said, I do know a lot of people who choose iBATIS even when they are starting from scratch.


I never like the idea of generating the DB schema. DB design, to me, is far too important for it to be generated. Even if I start from stratch, I like to design & normalise the DB 1st (and not the OO design). As such, I think iBatis is more suitable for me than the OO-centric Hibernate.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic