cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ari Maniatis (JIRA)" <>
Subject [jira] Updated: (CAY-975) Add MergerToken to update database or model with PK Generation Strategy
Date Wed, 06 Jan 2010 09:17:54 GMT


Ari Maniatis updated CAY-975:

    Fix Version/s: Undefined future

> Add MergerToken to update database or model with PK Generation Strategy
> -----------------------------------------------------------------------
>                 Key: CAY-975
>                 URL:
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Cayenne Core Library
>    Affects Versions: 3.0
>            Reporter: √ėyvind Harboe
>            Assignee: Tore Halset
>             Fix For: Undefined future
> I'm using DbMerger to update the DataMap with attributes from the database. This solves
a raft of problems, including how to let database managers modify length of fields from e.g.
SQL Manager(which they are comfortable with).
> My DataMap states that the pk is generated by the database, but when that is not the
case I'll get this exception:
> Caused by: java.sql.SQLException: Cannot insert the value NULL into column 'user_id',
table 'qpb.dbo.users'; column does not allow nulls. INSERT fails.
> 	at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(
> 	at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(
> 	at net.sourceforge.jtds.jdbc.TdsCore.nextToken(
> 	at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(
> 	at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message