• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

iBATIS imposing design

 
Ranch Hand
Posts: 516
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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".



 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic