1. Problem with map within a component in 2.1b6 forum.hibernate.orgIt looks to me like there is a bug in 2.1b6. Can someone please confirm this? I have a map within a component. When I attempt to load my entity, I get an SQL exception: "Invalid Column Name". It appears that the SQL hibernate is generating is not including the columns from the mapping table. This works fine in 2.0.3. Mapping ... |
2. Problem with component mapping forum.hibernate.orgHi, public class Currency { private BigDecimal amount; /** * @hibernate.property * @hibernate.column name = "m_amount" sql-type = "numeric(19,4)" */ public BigDecimal getAmount() { return this.amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } } /** * @hibernate.class */ public class LandValue { private Long id; private Currency value; /** * @hibernate.component */ public Currency getValue() { return this.value; ... |
3. Problem mapping one-to-many collection within a component forum.hibernate.orgI am having trouble saving an entity that contains a component which, in turn, contains a collection that is mapped one-to-many with a non-null foreign key. Loading instances (with session.get) of the entity works fine. If I map the key with not-null="false", saving works. Also if the the collection is directly contained in the entity (i.e., not in a component) saving ... |
4. component mapping problem forum.hibernate.org |
5. EJB3 Component Problem forum.hibernate.orgHere's my Address: Code: @Embeddable(access = AccessType.FIELD) public class Address implements Serializable, Comparable { private String name; private String line1; private String line2; private String city; ... |
6. Newbie component mapping problem? Not clear in documentation forum.hibernate.orgI am trying to convert an existing application to hibernate for persistence so I want to initially map between the existing value objects and tables without having to refactor any java code. I am having trouble with one concept in the value objects that is not represented in the reference guide clearly. Many of the value objects have composite entities that ... |
7. composite-id problem: component class not found forum.hibernate.orgNeed help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 3.1 Mapping documents:Participants.hbm.xml, Course.hbm.xml, Student.hbm.xml Code between sessionFactory.openSession() and session.close(): Full stack trace of any exception that occurs: Name and version of the database you are using: PostgreSql 8.1 The generated SQL (show_sql=true): Debug level Hibernate log excerpt: I have problems with using composite-id. Here is the mapping document: ... |
8. Components, many-to-one and inner join problem forum.hibernate.orgHi, I've found an interesting behaviour, maybe it's normal and I'm a stupid user. So the model is the following. There is an abstract SuperObject class, which has two subclasses, SubObject_Single.class and SubObject_Compound.class. There is another class, CommonObject, which has a component object, CalendarComponent, which has a Calendar object. SubObject_Single has a one-to-one relationship to CommonObject. SubObject_Compound has two component objects ... |