hibernate-onetomany Questions

10

Solved

I have two entities, an entity "movie" and an entity "Clip" each clip belongs to one movie and a movie can have multiple clips. My code looks like: Movie.java @OneToMany(mapped...
Evin asked 16/5, 2013 at 2:10

4

I am getting an error: Don't change the reference to a collection with cascade="all-delete-orphan" while trying the following operation: beginTx(); Parent parent = new Parent(); Child child =...
Tetroxide asked 20/9, 2013 at 6:56

3

Solved

Why hibernate uses a join table for these classes? @Entity public class CompanyImpl { @OneToMany private Set<Flight> flights; @Entity public class Flight { I don't want neither a join ...
Steffen asked 18/12, 2012 at 21:29

3

Solved

My problem is that hibernate retrieve null in the value of the @OneToMany Set organizationMemberCollection when fetching an instance on the following object : UserAccount.java : @Entity @Table(n...
Seditious asked 23/3, 2016 at 16:44

2

Solved

I've come across a few good possible answers to my questions, but this is regarding an upgrade from Hibernate 3.4.0GA to Hibernate 4.1.8. So this used to work under the previous version and I've se...
Thermotensile asked 20/11, 2012 at 16:51

3

Solved

In my application I use JPA 2.0 with Hibernate as the persistence provider. I have a one-to-many relationship between two entities (using a @JoinColumn and not @JoinTable). I wanted to know how cou...
Peroxide asked 1/2, 2011 at 16:39

3

Solved

I have a Many-to-Many relationship between the class Foo and Bar. Because I want to have additional information on the helper table, I had to make a helper class FooBar as explained here: The best ...
Spodumene asked 21/9, 2018 at 11:30

2

Solved

I am working on a legacy code base with an existing DB schema. The existing code uses SQL and PL/SQL to execute queries on the DB. We have been tasked with making a small part of the project databa...
Turk asked 3/2, 2011 at 23:23

2

I'm working on legacy system, need to read some of the info from database. Below are the table relationship Vendor (vendorId - pk, vendorEid, name) VendorContactBridge (bridgeId -pk, vendorEid, c...
Elul asked 14/12, 2012 at 20:38
1

© 2022 - 2024 — McMap. All rights reserved.