I am getting below exception : it is a simple ans straight one=to-many relation ship
org.hibernate.HibernateException: identifier of an instance of fleetcycle.domain.mxReporting.MxReportDefinitionAta was altered from 8a9e82a423e259da0123e25ae4570003 to null
Pleasse help me out whay i am getting this exception???
Based on "was altered from 8a9e82a423e259da0123e25ae4570003 to null "
It looks like in your code you have an object which you are changing the ID field. Hibernate uses the id as the way to identify an object to a row in the database, and is usually the PK of your table, so if you changed the pk value, it would fail to find the corresponding row in the database. Hibernate also uses the id field to determine whether it needs to do an insert or an update statement.
Usually the id field is set as private without a setter method.