Hi,
AFAIK you can't use identity columns as primary key, since you needto return
the primary key value in the create() statement. You simply can't do this as
the ident is filled out when inserted and there is no mean to read this
value.
Burkhard
----- Original Message -----
From: "Chris Tragas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 07, 2001 3:53 AM
Subject: [JBoss-user] SQL Server and Identity columns
> 2 queries regarding Jboss 2.2.2 and SQL Server 7:
>
> Firstquery:
>
> If i've got a column in a table that is a primary key and an identity
> column; how to I define it in a CMP bean without the container managing it
> (ie trying to update insert) I want all my other columns manage by the
> container but I dont want the identifity column to be managed;
>
> If I dont decalre this column as <cmp-field> in my jaws.xml file then
jboss
> doesnt like it; is there an xml tag that takes care of this; in other
words
> something that says this column is a cmp field but don't touch it, b/c its
> the primary key and is an identity column.
>
> hope this makes sense and someone can help.
>
> Thanks
>
>
> Chris Tragas
> -----------------------------------------
> [EMAIL PROTECTED]
> -----------------------------------------
> www.atomicmedia.com
> -----------------------------------------
>
>
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user