Hibernatt'te getter olan her parametre default olarak persistent yani db'ye yazılacak diye kabul ediliyor. DB'ye yazılmayacak bir parametreyi modele eklemek istiyorsak
@Transient annotation'u ile işaretlememiz gerekmektedir.
Aksi takdirde
:
org.hibernate.MappingException: Could not determine type for: java.util.Set, for columns: [org.hibernate.mapping.Column(users)] şeklinde bir exception alınır.
Referans:
http://docs.jboss.org/hibernate/annotations/3.5/reference/en/html_single/
https://forums.hibernate.org/viewtopic.php?p=2355691
7 Kasım 2010 Pazar
Kaydol:
Kayıtlar (Atom)