Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customzied OR Mapping

 
Animesh Saxena
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In OR mapping is it possible to generate multiple table joins automatically.

I am not using any OR Mapping tool. I want to use XML file for listing out the relationships and the code (for Example A mapper class) can read this file and retrieve the objects from database.

Has anyone tried that?

Other open source tools like MyGeneration give only methods for single factory DAL and entity. When 5 or 6 tables come into picture I have to make multiple calls to database via Factory classes --DAL -- ENTITY Layer to get all the entities. I want to avoid that so when all the relationships are clear (or taken from XML File) then only the call to database is made.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic