one-to-many is relationship between two different object properties.
I have the following entity: public class Level { public int LevelId { get; set; } public int? ParentLevelId { get; set; } public string …
c# entity-framework-core one-to-many ef-fluent-api ef-core-2.1I have following two classes and corresponding db tables. I am trying to insert the full object graph (student with …
.net sql insert one-to-many dapperI have 2 tables. One is called Employee, and the other is called Phones, and an employee can have multiple Phones. …
java jpa one-to-many cascadingWhen performing a delete of a one-many relationship without exposing the foreign key, EF deletes the parent record and tries …
entity-framework one-to-many code-first cascading-deletesI am trying to test one to many mapping by creating tables from domain objects but I see the error …
database hibernate mapping one-to-many schemaexportI am new to hibernate, I am having the following classes, I am using Spring hibernate and mysql. import javax.…
spring hibernate one-to-many spring-ormI have a posts controller and a comments controller. Post has many comments, and comments belong to Post. The associate …
ruby-on-rails one-to-many counter-cacheI found several times people asking for the same question but it seems that the answer was never satisfying altough …
entity-framework linq-to-entities one-to-many eager-loading entitycollectionI 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-oneLet's say I have this Class: Class A { int id; int[] b; // Other properties } Class B { int id; // Other properties } …
java ibatis one-to-many