1. Mapping Existence of Component to Column? forum.hibernate.orgIs there any way to map the existence of a component to a database column? For instance -- imagine a 'Car' class with an attached 'Spoiler' object. The spoiler object is a small value object with very little information (height, shape). Accordingly, when doing the mapping, we've decided to collapse the spoiler object to the two fields within the CAR table ... |
2. repeated column on mapping multiple components forum.hibernate.orgI'm trying to map three components of the same class using hibernate components and different prefixes for each component. The problem is that the component class is used as a persistent class with its own table somewhere else in the project. That's why I get an error "Repeated column in mapping for entity: test.FallDaten column: VORNAME (should be mapped with insert="false" ... |
3. Column width for component properties ? forum.hibernate.orgHi, In our application we frequently need to read the column width of a string property (typically for validation and for measuring the width of an editable field in a GUI). I already discovered that this information is available by navigation from the Configuration class, e.g. for a class 'Company' and property 'name' [quote] |
4. Column width for Component properties ? forum.hibernate.orgHi, In our application we frequently need to read the column width of a string property (typically for validation and for measuring the width of an editable field in a GUI). I already discovered that this information is available by navigation from the Configuration class, e.g. for a class 'Company' and property 'name' [quote] |
5. Mapping timestamp to column in component mapping. forum.hibernate.orgHello. I have some question regarding the mapping please. Currenly I am migrating my project from using TopLink to Hibernate. In all of my table, there is a column named "LAST_CHNG_DTTM" which is used as timestamp column for optimistic lock checking. This column is mapped to "modifyTime" property of Aufir domain object which is mapped using component mapping with all other ... |
6. Component set to null if all component columns are null forum.hibernate.org(Originally posted to NHibernate by mistake, reposted here) n the Hibernate documentation, in the Component Mapping section it states that: Quote: When reloading the containing object, Hibernate will assume that if all component columns are null, then the entire component is null. Our code assumes that component values are never null. If components are assigned null values, this causes errors in ... |
7. natural-id from component column and many-to-one column forum.hibernate.org |