Top "Many-to-one" questions

Another entities-cannot-be-cast-to-javassist-util-proxy-proxy

Following thread [entities cannot be cast to javassist.util.proxy.Proxy, i do have now a server side error ( tks …

java gwt proxy requestfactory many-to-one
How to save parent and child in one shot (JPA & Hibernate)

I start showing you my scenario. This is my parent object: @Entity @Table(name="cart") public class Cart implements Serializable{ @…

java hibernate jpa one-to-many many-to-one
How to remove Create and Edit... from many2one field.?

Please advice me How to remove "Create and Edit..." from many2one field.? that item shows below in the many2…

python xml one-to-many openerp many-to-one
Hibernate insert cascade not inserting foreign key

I have two entities: @Entity public class File ....... @Id @GeneratedValue(strategy=GenerationType.AUTO) private int id; @OneToMany(fetch=FetchType.LAZY, …

hibernate one-to-many many-to-one
Hibernate ManyToOne vs OneToOne

I can't see any difference in the schema of a Many-To-One relationship vs a OneToOne relationship: @Entity public class Order { @…

hibernate one-to-one many-to-one
Hibernate Many-To-One Relationship without Foreign Key but with reverse foreign key

I have the following DB: CREATE TABLE car_owner ( car_owner_id int(11) NOT NULL, car_id_fk int(11) DEFAULT …

java hibernate one-to-many many-to-one
Hibernate Many-to-one lazy loading is not working

I have a class and 2 many-to-one mappings in it , How can I lazy load them My properties **teneo.mapping.also_…

hibernate proxy lazy-loading many-to-one
Doctrine OneToMany relationship error

I am trying to set up some ManyToOne/OneToMany relationships on objects in my database using Doctrine (2.2.3+) via Symfony2 (2.3.0) and …

symfony doctrine-orm one-to-many many-to-one
org.hibernate.MappingException: Unable to find column with logical name Id

It's just one of my first demos on JPA and it's so simple that this error drives me crazy:( Database (…

java hibernate jpa many-to-one mappingexception
Null foreign key, in ManyToOne relation using hibernate [4.1.1] annotations

I am trying to persist a one-to-many and a many-to-one relation using Hibernate 4.1.1 but the foreign key is always NULL. …

java hibernate foreign-keys one-to-many many-to-one