Internal Website Search
11-20 of 168 resultsRefreshOneToMany and cascade delete problem have a problem with with two different classes with OneToMany relation to one, shared class. For example (first class): @Entity public static class Store { @OneToMany(targetEntity ... : @Entity public static class Product { @OneToMany(targetEntity = Offer | |
Error: Failed to write value of field X using reflection (oneToMany relation){ @OneToMany(mappedBy="Pedido.cliente") public List<Pedido> pedidos; } The class ... ; What's wrong with this? I suppose i'm making a bad connection on the oneToMany - manyToOne ... "> @OneToMany(mappedBy="cliente") i.e. specify the field name on the owner side without the class name. support Support | |
JPA vs JDO - which is more efficient for OneToMany queries? { @OneToMany // the annotation is not required by ObjectDB Vector<Order> orders; } @Entity ... me see if I grok this. Using JPA: @Entity class Customer { @OneToMany ... - just tried it, pretty impressive. I used JPA, and the @OneToMany(mappedBy | |
@OneToMany(fetch = FetchType.LAZY) list is always null Hello. @OneToMany(fetch = FetchType.LAZY) doesn't work when using EJB or something else related to J2EE. parent.getChildren() returns null. Here is a simple example: Bean: OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private List<Child> | |
how to query by properties of onetomany relations? (Error 990)> f.bars is: @OneToMany private Set< ... static final class Foo { @OneToMany(cascade=CascadeType | |
Memory use in OneToMany relationshipsHello everyone, I have a question regarding the OneToMany / ManyToOne Relationship in ObjectDB. So imaging following setup: We have class A which holds an collection (List, Arrray ...) of class B. In a more usual DB like MySQL with a seperate server we first query for the Entitys | |
Bidirectional OneToMany is slow on updated items dramatically, is to avoid using mapped by collections: @OneToMany(cascade | |
Removing an element from an @OneToMany doesn't work Hello. I have a Parent and Child entities. // in the parent @OneToMany(mappedBy = "parent", fetch = FetchType.EAGER, cascade = CascadeType.ALL) private List<Child> children; // in the child @ManyToOne private Parent parent; Somewhere I | |
OneToMany Bidirectional Relationship Problem Hi, I'm pretty certain I'm doing something stupid. I've read everything I can find on OneToMany in the forum and in the JPA docs, but I can't get it to work with 2.4.0_04. I've attached a testcase. I want the owning object present in the child, (in the example, Team to be in Player | |
Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled Hello! When the JPA entities are not enhanced the removal of an entry from a @OneToMany ... .OneToMany; import javax.persistence.Persistence; import org.junit.Assert; public final class ... ; } } @Entity public static class ParentEntity { @OneToMany(fetch = FetchType |