严重: ORA-00001: 违反唯一约束条件
插入数据的时候报的这个问题,大家给看看。
Hibernate:
select
hibernate_sequence.nextval
from
dual
Hibernate:
insert
into
MAP_T_RELAY_STATION
(DATA_GUID, RELAY_STATION_NAME, X, Y, RELAY_STATION_ID)
values
(?, ?, ?, ?, ?)
2011-5-4 9:21:48 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1, SQLState: 23000
2011-5-4 9:21:48 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-00001: 违反唯一约束条件 (JMJL.MAP_T_RELAY_STATION_KEY)
2011-5-4 9:21:48 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 1, SQLState: 23000
2011-5-4 9:21:48 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: ORA-00001: 违反唯一约束条件 (JMJL.MAP_T_RELAY_STATION_KEY)
2011-5-4 9:21:48 org.hibernate.event.def.AbstractFlushingEventListener p