-->
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.  [ 2 posts ] 
Author Message
 Post subject: EntityPersister/sql-insert w/ discriminator or list index
PostPosted: Sun Oct 31, 2004 12:25 am 
Newbie

Joined: Mon Sep 08, 2003 12:16 am
Posts: 9
I'm currently using a custom EntityPersister to use stored procedures for CUD operations. Now I need to use subclass/discriminator columns and also <list> mappings with an index column.

I can use getDiscriminatorSQLValue() to find the discriminator value, how do I get the value of my list index? (eg. <list><index column="SEQUENCE"/></list>)

I'd also like to switch to using Hibernate 3's <sql-insert> tags instead of writing the custom EntityPersister objects.

Is this possible? I'm having trouble finding examples. I'm open to either using the EntityPersister or new <sql-insert> tags, whichever is easier and most effective.

Thanks,
- Ryan


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 31, 2004 4:15 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
there is examples of custom sql in H3 junit tests. CustomSQLTest

_________________
Max
Don't forget to rate


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

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.