Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.2
Name and version of the database you are using:
Mysql 5.0
Hi,
I've some classes marked as immutable, one of each is parth of implicit polimorphism hierarchy. thi class is "AssociatedAddressBookEntry" that is subclass of "AddressBookEntry".
so if id do:
Code:
Long id = ...
Sesions s = ...
Transaction tx = s.beginTransaction();
AddressBookEntry abe = (AddressBookEntry)s.get(AssociatedAddressBookEntry.class,id);
abe.setName("Pincopallino");
s.merge(abe);
tx.commit();
this, of course, not update the "abe" entiy, but don't issue an Exception. It's correct behavior?[/code]