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: Deux séquences dans un même mapping ?
PostPosted: Mon Apr 16, 2007 5:34 am 
Newbie

Joined: Mon Apr 16, 2007 5:13 am
Posts: 2
Bonjour à tous,

Comment faire pour qu'un champ de mon mapping puisse être généré par une séquence ?
Il y a en a une de déclarée sur l'id (normal) mais je voudrais en déclarer une autre sur un autre champ (la version de l'objet)
Malheureusement on ne peut pas le faire...

Même ça ne fonctionne pas non plus

<sql-insert>
INSERT INTO MESSAGE ( CODE, TEMPLATE_ID, VERSION, MESSAGE, CREATED_BY, CREATION_DATE, MODIFIED_BY, MODIFICATION_DATE, ID)
VALUES (?, ?, (select VERSION_SEQ.nextval from dual), ?, ?, ?, ?, ?, ?)
</sql-insert-->


Hibernate version: 3.1.3

Name and version of the database you are using: Oracle 10g


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.