webtier@glassfish.java.net

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

From: <lincolnbaxter_at_gmail.com>
Date: Wed, 15 Jul 2009 15:06:40 +0000

Strange, maybe a bug? I find that hard to believe though, for such a common use case

-Lincoln
------Original Message------
From: webtier_at_javadesktop.org
To: webtier_at_glassfish.dev.java.net
ReplyTo: webtier_at_glassfish.dev.java.net
Subject: Re: [webtier] Re: 'Attempt to modify an identity column' exception(no Hibetnate)
Sent: Jul 15, 2009 11:01

@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

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net



Sent from my Verizon Wireless BlackBerry