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

hibernate example for dynamic-class

 
mahajan amit
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Please anyone explain step wise how to use this dynamic-class, in hibernate.

I think this is some new feature in hibernate. I did not found much help on Google guru.

I am new to hibernate and my requirement is to map DTO at runtime and persist them.

For example at run time i should be able to create mapping of any DTO(s) as required and
using dynamic-class. it should be persisted.

boss is surely gona kill me


Thanks all

amit
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hibernate works from a static model, it is not designed to handle dynamic classes (in its released and supported versions anyway). 3.3 has added some support for dynamic models but (as the documentation states) this is experimantal and can change at any time.

Is this the feature you were looking for?
 
mahajan amit
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Sturrock wrote:Hibernate works from a static model, it is not designed to handle dynamic classes (in its released and supported versions anyway). 3.3 has added some support for dynamic models but (as the documentation states) this is experimantal and can change at any time.

Is this the feature you were looking for?


Hi

Thanks for replying, i am looking for this feature which means putting <dynamic-class> inside mapping xml.

I think this is working in version 3.2+ as i am able to use <dynamic-component> right now, although i am not sure.

Is it possible?

Please explain what this means

http://www.mail-archive.com/hibernate-devel@lists.sourceforge.net/msg03877.html

Thanks
amit
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic