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

Sql in xml files

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We can use mapping files to put all our SQL into external xml files. I like it this way, and we're using iBatis at work because we needed to it this way.
I've almost never touched other ORM frameworks, and I'd like to know if this is particular to iBatis, or if other frameworks too do it that way.
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In hibernate you can specify the sqls in the xml file which you use to map the java objects with the database tables(*.hbm.xml).
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, so it's also done the same way in other frameworks.
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic