[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-5429) [regression] unable to persist entity using derby 10.6.1.0 and hibernate 3.5+
Gail Badner (JIRA)
noreply at atlassian.com
Wed Feb 22 19:17:49 EST 2012
[ https://hibernate.onjira.com/browse/HHH-5429?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner resolved HHH-5429.
------------------------------
Resolution: Rejected
Assignee: Gail Badner
Fabien Marsaud, thanks for your explanation and workaround.
> [regression] unable to persist entity using derby 10.6.1.0 and hibernate 3.5+
> -----------------------------------------------------------------------------
>
> Key: HHH-5429
> URL: https://hibernate.onjira.com/browse/HHH-5429
> Project: Hibernate ORM
> Issue Type: Bug
> Components: core
> Affects Versions: 3.5.3, 3.5.4, 3.6.0.Beta1
> Environment: derby 10.6.1.0 and hibernate 3.5+
> Reporter: Max Giesbert
> Assignee: Gail Badner
>
> when inserting any kind of entity
> @Entity
> public class TestObject
> {
> private Long id;
>
> private String test;
>
> public TestObject(){}
>
> @Id @GeneratedValue(strategy=GenerationType.AUTO)
> public Long getId()
> {
> return id;
> }
> [...]
> i get the following error message
> org.hibernate.exception.ConstraintViolationException: could not insert: [com.mypackage.TestObject]
> >>java.sql.SQLIntegrityConstraintViolationException: Column 'ID' cannot accept a NULL value.
> >>org.apache.derby.impl.jdbc.EmbedSQLException: Column 'ID' cannot accept a NULL value.
> >>ERROR 23502: Column 'ID' cannot accept a NULL value.
> >> at org.apache.derby.iapi.error.StandardException.newException(Unknown Source)
> >> at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeColumn(Unknown Source)
> >> at org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(Unknown Source)
> >> at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown Source)
> >> at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown Source)
> >>...
> the same code is working fine with versions 3.3.2GA and annotations 3.4.0GA and earlier. i just switched back...
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list