Bonjour,
j’ai un problème pour insérer des donnes dans un contract
Jai mis une liste déroulante mais quand j’essais d’insérer jai toujours un message d’erreur
Caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:129)
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
at org.hibernate.internal.SessionImpl.merge(SessionImpl.java:821)
at org.hibernate.ejb.AbstractEntityManagerImpl.merge(AbstractEntityManagerImpl.java:889)
... 119 more
Caused by: org.h2.jdbc.JdbcSQLException: NULL not allowed for column "CODEDEVISE"; SQL statement:
insert into SOCIETE (persistenceId, CONTACT, EMAIL, LIBELLE, persistenceVersion, ZONEGEO_PID) values (null, ?, ?, ?, ?, ?) [23502-170]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
at org.h2.message.DbException.get(DbException.java:169)
at org.h2.message.DbException.get(DbException.java:146)
at org.h2.table.Column.validateConvertUpdateSequence(Column.java:293)
at org.h2.table.Table.validateConvertUpdateSequence(Table.java:689)
at org.h2.command.dml.Insert.insertRows(Insert.java:120)
at org.h2.command.dml.Insert.update(Insert.java:84)
at org.h2.command.CommandContainer.update(CommandContainer.java:75)
at org.h2.command.Command.executeUpdate(Command.java:230)
at org.h2.server.TcpServerThread.process(TcpServerThread.java:333)
Et pourtant ma variable société est bien initialisé
All BDM
SOCIETE
ZONEGEO
DEVISE