Top "Many-to-one" questions

HIBERNATE - ManyToOne - Not-null property references a null or transient value

I have a problem with Hibernate ManyToOne as the foreign key is not filled in the database. So I have …

hibernate many-to-one
Hibernate criteria for OneToMany/ManyToOne relationship

I have a OneToMany/ManyToOne relationship between two objects like: public class Company { private Long compid; private String companyName; @OneToMany(…

java many-to-one hibernate-criteria hibernate-onetomany
Disable Cascade in ManyToOne relationship JPA when saving

I'm having problems when saving entities in my DB. I have something like (very simplified) : @Entity public class Building { @OneToMany(…

java jpa eclipselink cascade many-to-one
Spring MVC with Hibernate - OneToMany mapping in form

I have Car and Rental models conntected OneToMany relation: @Entity public class Rental { private Long id; private Car car; private …

forms spring hibernate many-to-one
NHibernate mapping by code ManyToOne with CompositeIdentity

I am trying to convert my FluentNHibernate mappings to NHibernate Mapping By-code using NHibernate 3.3.3. The goal is to upgrade to …

nhibernate many-to-one mapping-by-code
NHibernate Cascade none still updating related entity

I am then using Fluent NHibernate and its automapping feature to map the the following simplified POCO classes: public class …

nhibernate fluent-nhibernate cascade many-to-one
Doctrine: Is it possible to INDEX BY a related field?

I have a Doctrine model (Assignment), which has a many-to-one relationship with another model (Region). Assignments are owned by users (…

doctrine-orm dql many-to-one
JPA Composite key with ManyToOne getting org.hibernate.PropertyAccessException: could not set a field value by reflection setter of

I have a composite key ContractServiceLocationPK made out of three id's (contractId, locationId, serviceId) of type long in an embeddable …

java hibernate jpa one-to-many many-to-one
Specifications and (null) Many-To-One Relationship

I have an MVC Controller that return a List of Contacts as JSON. On frontend side i use jquery datatables …

spring-data-jpa specifications many-to-one
How do I left join tables in unidirectional many-to-one in Hibernate?

I'm piggy-backing off of How to join tables in unidirectional many-to-one condition?. If you have two classes: class A { @Id …

java hibernate orm many-to-one