Hello,
If I remember how auto-increment fields work in SQL Server or Access... you do not
need (i.e. are not allowed) to set it during the "insert into" SQL instruction (or the
addnew), but once the data is inserted (or at least rs.update), you can read it back
so see what value has been set by the underlying db.
Cheers,
Sacha
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]De la part de danch (Dan
> Christopherson)
> Envoye : jeudi, 17 mai 2001 17:20
> A : [EMAIL PROTECTED]
> Objet : Re: [JBoss-user] Overriding CMP entity creation
>
>
> If all you need to do is get your primary key from the autoincrement,
> you can simply put the code to fetch the value in ejbCreate and return
> that value as your primary key. Or am I missing something?
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user