File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes iBATIS imposing design Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "iBATIS imposing design" Watch "iBATIS imposing design" New topic
Author

iBATIS imposing design

Alex Belisle Turcot
Ranch Hand

Joined: Apr 26, 2005
Posts: 516
Hi,

im new to iBATIS. For now, it seems iBATIS is imposing a object relational design on the OO design.

What if I want to do an "insert" using data from more than 1 Java object. How can I do that ?

From what I've seen, I would have to create 1 java object for each of my SQL table, which lead me to say that iBATIS is not so flexible.

Can someone please tell me how this can be done.

Regards,
Alex
Prem Khan
Ranch Hand

Joined: May 30, 2005
Posts: 189
I evaluated iBATIS for a large project awhile back, but I found it to be less flexable than other ORM tools.

In the end I choose Hibernate. Hibernate alows you to structure your javaclasses and their relationship to the database tables in just about any way you can imagin. More than one java class can be used to represent one table, or the other way around if you want.

This can be used as an object oriented solution in its self.

Look up "finely grained domain models".



 
 
subject: iBATIS imposing design
 
Threads others viewed
how to start doing Ibatis samples
Authors: Hibernate's effect on data modelling
Welcome David Jordan and Craig Russell to our Book Promotion of the Week
Transactions in iBATIS
iBatis question
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com