Hi there,
If your table has a meaningful PK, you can just map it as an object
attribute and set it via setXYZ() method on a DataObject.
On automated reverse-engineering CayenneModeler skips all PK columns
and doesn't add them to the object model, however it is very easy to
add a new ObjAttribute and map it to "CODUSER" column. Use this button
- http://objectstyle.org/cayenne/images/modeler/icon-attribute.gif :-)
Cheers,
Andrus
On Jun 25, 2004, at 11:05 AM, SP Reinaldo Sartorelli - Anal.
Programador wrote:
> All, iīve a problem to add a row in the database, iīve a table :
>
> USER <TABLE>(
> PK CODUSER
> NOMUSER
> LOGUSER
> );
>
> and i donīt know add a new ObjectId, and a CODUSER is not
> auto-increment.
>
> I using a SQL server 6.5
>
> Tks.
This archive was generated by hypermail 2.0.0 : Fri Jun 25 2004 - 14:40:47 EDT