webtier@glassfish.java.net

Re: [webtier] Re: 'Attempt to modify an identity column' exception (no Hibetnate)

From: <webtier_at_javadesktop.org>
Date: Wed, 15 Jul 2009 08:01:10 PDT

@Column(name = "STATUS",
            insertable = false,
            columnDefinition="varchar(8) default 'INACTIVE' not null")
    private String status;

not working:

Column 'STATUS' cannot accept a NULL value. Error Code: -1 Call: INSERT INTO FX.OOF_USERS (EMAIL, PASSWORD, STATUS) VALUES (?, ?, ?) bind => [3, 3, null]

still in the insert statement regardless of the [i]insertable=false[/i], wierd... :/
[Message sent by forum member 'dziku' (dziku)]

http://forums.java.net/jive/thread.jspa?messageID=355793