1. How to map a component object to be null if value is '-1'? forum.hibernate.orgI'm trying to create hibernate mappings for a hierarchy, as follows... The schema... Code: CREATE TABLE `organization` ( `OrgIntID` int(11) NOT NULL AUTO_INCREMENT, `OrgTitle` varchar(50) DEFAULT NULL, `OrgDesc` text, PRIMARY KEY (`OrgIntID`), UNIQUE KEY `OrgTitle` (`OrgTitle`) ) ENGINE=InnoDB AUTO_INCREMENT=29 DEFAULT CHARSET=latin1; CREATE TABLE `org_hierarchy` ( `OrgHierID` int(11) NOT NULL ... |
2. Best Practice using UserTypes as components (values) forum.hibernate.orgHibernate version: 2.17 I've read the docs (e.g. http://www.hibernate.org/hib_docs/reference/en/html/), I've read the FAQs, I've read Hibernate In Action, I've looked through the forums, but I still haven't found a good answer to my question. Or, more likely, I'm just unwilling to accept the answer I've been given and just want to make sure there is not a better way. I would ... |
3. Value Object versus Value Type versus Component forum.hibernate.org |
4. components versus value types forum.hibernate.orgI'm working my way through JPA in Action. I have a question about the difference between value types and components. The book says things like a value type depends entirely on an entity for its lifecycle, and that no other entity holds a reference ( a field reference i assume ) to the value type candidate. With this understanding, I have ... |
5. Criteria query and components (value types) forum.hibernate.org |