• 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:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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".



 
I'm not dead! I feel happy! I'd like to go for a walk! I'll even read a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic