I am trying to add an object which has following hibernate mapping and I am getting teh following error.I checked my accessor declaration , class hierarchy, hibernate mapping file.
MAPPING================
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping package="com.sungard.omnimanager.db.model">
<class name="User">
<composite-id>
<key-property name="userid" />
<key-property name="profileName" />
<key-property name="accessId" />
</composite-id>
<property name="deleted" type="boolean"/>
<property name="sslEnabled" type="boolean"/>
</class>
</hibernate-mapping>
ERROR =================
identifier of an instance of com.sungard.omnimanager.db.model.User altered from com.sungard.omnimanager.db.model.User@56f631[
accessId=MATCOM
userid=EBSEBS
profileName=WORDLWIDE
sslEnabled=false
id=<null>
deleted=false
] to com.sungard.omnimanager.db.model.User@56f631[
accessId=MATCOM
userid=EBSEBS
profileName=WORDLWIDE
sslEnabled=false
id=<null>
deleted=false
]
at com.sungard.omnimanager.db.utility.OmniMgrHibernateUtility.addDbEntity(OmniMgrHibernateUtility.java:136)
at com.sungard.omnimanager.db.dao.UserDAO.addUser(UserDAO.java:46)
at com.sungard.omnimanager.db.dao.UserDAO.main(UserDAO.java:29)
|