-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Customize SQL statements when inserting/persisting entities
PostPosted: Tue Sep 21, 2010 10:01 am 
Newbie

Joined: Tue Sep 21, 2010 9:18 am
Posts: 3
Hi *,

we have an existing legacy database schema to which we have to map our new domain model. Currently EclipseLink is used as JPA implementation but because of the tighter integration with JBoss we want to migrate to Hibernate. Because of the complexity of the mapping to that database schema we have to execute more than one SQL insert statement for some entities. Those insert statements cannot be extracted into a stored procedure since they are derived from the entity that has to be stored and its associated entities.

Is there a way in Hibernate to programmatically customize the SQL insert queries executed when persisting an entity? E.g. something like the 'DescriptorCustomizer' concept in EclipseLink?

Thanks in advance,
Thomas


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.