Internal Website Search
101-150 of 163 resultsPerformance and memory usage of queries javax.persistence.FlushModeType; import javax.persistence. OneToMany ; import javax.persistence | |
Problem persisting a TreeSet field Hello, I am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field Message.children to java.util.HashSet" when persisting a Message object with a parent/children relationship: @ManyToOne private Message parent; @ OneToMany (mappedBy = "parent") private TreeSet children | |
find() cost unreasonable time!) private int id; @ManyToOne @JoinColumn(name="parent") protected Nodes parent; @ OneToMany (mappedBy | |
Using of Second Level Cache myEntity2; @ OneToMany private List list; } btc_es BTC | |
Query over the keySet of a map field with collection parameter; } @ OneToMany (cascade = CascadeType.ALL) public Map map = new HashMap (); } @Entity public static class | |
TemporalType injection with Calendar using JPA(TimePeriod id) { this.id = id; } @ OneToMany (cascade=javax.persistence.CascadeType.ALL,fetch=javax | |
Storing objects problem adding an annotation to a reference: @ OneToMany (cascade=CascadeType.PERSIST)   | |
Are indexes implicitly created for relationships? Do the following annotations @ OneToMany @ManyToOne @ManyToMany @OneToOne imply @Index ? Thanks, Carl FastModel Ben Schreiber Actually these annotations (except @ManyToMany ) should apply @Unique on the @One side. But ObjectDB doesn't apply these indexes automatically | |
OrphanRemoval not working? Dear all, I have entities Invoice and InvoiceItem, their relation is defined: public class Invoice implements Serializable { ... @ OneToMany (mappedBy="invoice", fetch=FetchType.EAGER, orphanRemoval=true, cascade=CascadeType | |
New to Product & Having An Issue() { return name; } public void setName(String name) { this.name = name; } @ OneToMany (fetch=FetchType | |
Beginners questions") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ OneToMany (fetch=FetchType.LAZY,cascade | |
openejb jpa jaas module String mailAddress; @OneToOne private Settings settings; private String phoneNumber; @ OneToMany | |
NullPointerException in ENH.g(ENH.java:401).handleOrphans(Entity.java:170) This happens when I try to read a @ OneToMany list collection | |
Problem with @OrderBy; @ OneToMany (mappedBy="defect") @OrderBy("seqRel, noteSeq | |
EM.find() is suddenly slower = {CascadeType.REFRESH, CascadeType.DETACH }) private ModelElementImpl element; @ OneToMany (fetch | |
@Column( name = "columnName") doesn't work I have created following entity class with custom fields @Entity public class AfwDataKey { @Id @GeneratedValue @Column(name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @Column(name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @ OneToMany (fetch = FetchType.LAZY | |
Query only works correctly when debug printing results @GeneratedValue private long id; private String reqLevelName = "DEF"; @ OneToMany (mappedBy | |
Maintaining referential integrity annotations like " OneToMany " and "ManyToOne", but the result is the same. What am I supposed | |
Entity not removed 100% When I remove an object from a class it get's removed but the other objects that had that object as an attribute still keep it although I am using @ OneToMany (cascade=CascadeType.ALL) This is what it remains when I check the removed object from another object's attributes Unknown | |
Annotate a Map field with @ElementCollection or @Basic and therefore excluded (as optimisation) from automatic cascading. You can also try @ OneToMany (fetch | |
Transaction isolation support? own defined as @ OneToMany (fetch=FetchType.LAZY) List bookList; (And in this example, there is only 1 object in | |
Relationship Annatations hi, what is the purpose of annotating a field with a RDB relationship shuch as OneToMany . ManyToMany etc? sprintf Reuben Alfred Using these annotations is optional in ObjectDB but required by standard JPA. You still need these annotations in ObjectDB to specify cascading / fetch policy and other settings. support Support | |
Possible issue for JPQL IS EMPTY expression class MyEntity { @ OneToMany (mappedBy="myentity") ArrayList others = new ArrayList (); void | |
OEM licencing limitation // enhanced entity public final class Test { // non enhanced entity Internal @ OneToMany (fetch | |
Attempt to remove a detached entity object (error 613) to remove the object ... ? In my opinion, one child ( a list ) with OneToMany and orphanRemoval | |
Retrieval by Access bug? Dear Sirs, I have an object A, that has a OneToMany FetchType.EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) { ClassC objectC = objectB | |
Unexpeted internal exception there is a problem with the listaCiudades field in GS_TablaPaises @ OneToMany (targetEntity = GS_TablaCiudades | |
Fields in objects not populated in query result. Serializable { /** * */ private static final long serialVersionUID = 1L; @ OneToMany (cascade | |
Error during cascaded merge"}),}) public class Unit implements Serializable, Comparable { ... @ OneToMany (mappedBy = "unit", cascade | |
removed objects stay with null field values in the reference; ... @ OneToMany (fetch=FetchType.LAZY) public Set workflow = new HashSet (); When we remove an object | |
List always null; @ OneToMany (targetEntity = Noticia.class, mappedBy = "categorias", cascade = CascadeType.PERSIST | |
@Lob @Basic(fetch = FetchType.LAZY) is loaded when it's not needed Hello. I have a class Thing that contains OneToMany list of classes Photo. Photo contains @Lob @Basic(fetch = FetchType.LAZY) private byte[] content; And after some queries with Thing (but without loading content of the photos) I get java.lang.OutOfMemoryError: Java heap space | |
Speeding up the creation of Log entity objects related to other objects { @Id @GeneratedValue private long id; @ OneToMany (fetch = FetchType.EAGER, cascade={CascadeType | |
Failed to write the value of field using reflection (error 363) on LAZY fetch hints? The Mapping of class Modell and its member: @Entity class Modell { ... @ OneToMany (fetch | |
Database Inconsistency or corruption markedDeleted = false; @ManyToOne private Project project; @javax.persistence. OneToMany | |
GWT RPC is throwing serialization exception when I have object db date value will alway be empty after detaching. @ OneToMany (fetch = FetchType.EAGER, cascade = CascadeType | |
Example database world.odb the relationships OneToMany and ManyToMany? I want to see a working example :-) Robin_2005 Kompan Serge | |
Different behavior with persist() and queried instances? Hi, We have a simple class that by itself contains (among others) a property pointing to a collection: class Bla { @ OneToMany (cascade = CascadeType.ALL) private List metaAttributes = new ArrayList (); } Now we do a simple em.persist(BlaInstance | |
Trouble bug on explorer allowIdWaitMe; @OneToOne(fetch = FetchType.EAGER) private Language mainLanguage; @ OneToMany (fetch | |
Detaching objects after JOIN FETCH Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @ OneToMany (fetch = FetchType.LAZY, cascade = CascadeType.ALL) List aClasses; } Now, I want to fetch all B classes | |
Items in list are doubled, when the entity class is not enhanced id; @ OneToMany (mappedBy = "customer",fetch= FetchType.EAGER,   | |
Foreign key constraint issue @GeneratedValue private long id; @ OneToMany | |
"Problem" with cross join; @ OneToMany (mappedBy="ci") private List content; abstract class CIdata (@Inheritance(strategy=InheritanceType | |
new objects not available in mappedBy associations Given a mappedBy association: e.g: @ OneToMany (mappedBy="department") public List employees; creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object | |
Eager Fetch of Map with Entities as Keys id = 1; @ OneToMany (fetch=FetchType.EAGER)   | |
[ObjectDB 2.2.5_02] Unexpected exception (Error 990) com.objectdb.o.InternalException: java.lang.NullPointerException: null; } @ OneToMany (cascade=javax.persistence.CascadeType.ALL,fetch=javax.persistence.FetchType.EAGER | |
Navigation through lazy loading from Detached Objects; @ OneToMany (cascade=CascadeType.PERSIST)   | |
com.objectdb.o.InternalException: null = Payment.Periodicity.QUARTERLY; @ OneToMany (mappedBy = "customer", fetch | |
Enhanced classes problem and annotations: @ OneToMany (fetch = FetchType.EAGER, mappedBy = "jobInfoId") // relation | |
Issue with cascade delete & add/remove; private String name = null; @ OneToMany |