ObjectDB Database Search

101-150 of 200 results

How to delete M2M relationship?

;  private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @ Cascade (org.hibernate.annotations.CascadeType.ALL)  

Persisting collection where members are subclasses

been persisted. You have to persist every entity object explicitly unless cascading persist  is enabled ... ;         @OneToMany( cascade =CascadeType.PERSIST)    

EM.find() is suddenly slower

.FIELD) @Column (name = "uid") private String uid; @OneToOne (fetch = FetchType.EAGER, cascade ... = FetchType.EAGER, cascade = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap mappingMap = new

@Column( name = "columnName") doesn't work

, cascade = CascadeType.ALL) @Column( name = "DATA_ITEMS" ) private List dataItems; @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL) private AfwCodedDataBlock codedDataBlock; private int level

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 ... unknown It is the application responsibility to clear references to removed objects. Cascading removal

significant performance decrease

) public List precessors = new ArrayList (); @OneToMany(fetch=FetchType.LAZY, cascade =CascadeType.REMOVE ... = new ArrayList (); @OneToMany(fetch=FetchType.LAZY, cascade =CascadeType.REMOVE) public List

can't get HashMap out of the database

signingDate;     @OneToMany(fetch=FetchType.EAGER, cascade =CascadeType ... .EAGER, cascade =CascadeType.ALL)     private ArrayList guests = new ArrayList

Some details about db behavior

will refer to it. Please explain what is happening there? I know about cascade option, and if I use ... class) after persisting a B instance that references an A instance (with cascading enabled

Problem with @Basic(fetch = FetchType.LAZY)

with @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)     private LargeString description;     @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)   

LAZY @ManyToOne field functions as EAGER

; @ManyToOne(fetch=FetchType.LAZY, cascade = CascadeType.ALL)         C ... ; @ManyToOne(fetch=FetchType.EAGER, cascade = CascadeType.ALL)         C

null pointer exception in objectdb-2.4.4_06

.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM.java ... to persist (indirectly via cascading ) an object with a null primary key. Build 2.4.4_17 may provide a better error message in this case. support Support

Merge on detached entities

was not yet loaded. The cascade type for this reference was set to ALL. Then we tried to merge ... . What settings on annotations are needed regarding fetch types and cascades . Kind regards btc_es BTC

Object explorer cannot open odb file. ObjectDB many-to-many relationship

{     @Id @ManyToOne( cascade = CascadeType.ALL, optional = false)     private User user;         @Id @ManyToOne( cascade = CascadeType

ObjectDB Explorer don't show ManyToOne relations

;@ManyToOne (targetEntity = ModelElementImpl.class, cascade = {CascadeType.REFRESH}) private ModelElement ... ;@ManyToOne (targetEntity = ModelElementImpl.class, cascade = {CascadeType.REFRESH}) private

Why are my Map entries not stored?

, cascade =CascadeType.ALL, mappedBy = "ticket",     orphanRemoval=true ... = FetchType.EAGER, cascade =CascadeType.ALL, orphanRemoval=true) @MapKey(name="state") @MapKeyEnumerated

Is there any restriction when using fetch=FetchType.LAZY ?

am using in object declaration @OneToMany(fetch=FetchType.EAGER, cascade = CascadeType.ALL) private ... @OneToMany(fetch=FetchType.LAZY, cascade = CascadeType.ALL) private LinkedList referencedObj

Foreign key constraint issue

; @ManyToOne(optional = false, cascade = {})     @JoinColumn(name="PARENT_ID", nullable = false ... ( cascade = {CascadeType.MERGE, CascadeType.REMOVE}, mappedBy = "parent", orphanRemoval = true)  

Lazy loading does not work - crud takes long

; @OneToMany( cascade = CascadeType.ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType.LAZY)     private List datapoint;         @OneToMany( cascade

OEM enhancing

Hello, I have question regarding OEM licence enhancement. @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private SomeClass[] props; @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL) private Map vars = new TreeMap (); Are these classes(SomeClass, SomeClass2), when not

Extra uninitialised entities spawned on merge()

;    cascade = CascadeType.ALL         )    ... . The merge() operation can be optionally cascaded in these cases to prevent an exception from occurring

Upgrade to 2.4.1_01

our code for 2.3.7_18, we had @OneToOne( cascade =CascadeType.ALL, fetch=FetchType.EAGER ... .o.CLT.visitRefs(CLT.java:160) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade

Cannot sort descending, when ordering by caluculated float in a method

{         @OneToMany( cascade =CascadeType.PERSIST)    ... = FetchType.EAGER, orphanRemoval=true, cascade = CascadeType.ALL) private List itemList = new ArrayList

_PersistenceException: Type is not found on getSingleResult.

= "estudiante", cascade = CascadeType.ALL, orphanRemoval = true)     private List

Problem on JPA Merge Entity.

Hello, I have a problem with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I do this myself (no use of cascade because sometimes the newSingleValue is already in database

LifeCycle Event with Embeddable classes

Hello, is there a way that lifecycle events like prepersist or preupdate are also fired for embeddable classes, not just for entities? My case looks as follows: @Entity public class Foo { @Id @GeneratedValue private Long id; private String description; @OneToMany( cascade = CascadeType.ALL, fetch

Object belongs to another EntityManager - ERROR

(TVS.java:169) 10:29:15,110 ERROR [stderr] (http--10.23.3.98-8081-5) at com.objectdb.o.TVS. cascade

General Performance Issues Illustrated with a Specific Method

( cascade = CascadeType.ALL,fetch = FetchType.EAGER) private Person person; @Index private String phn

Query over the keySet of a map field with collection parameter

; } @OneToMany ( cascade = CascadeType.ALL) public Map map = new HashMap (); } @Entity public static class

Soft Reference Object Cache Recommendation

"ENT" that is a strong reference to that SoftReference.  Under "i", I see cascading ENT and ENT

TemporalType injection with Calendar using JPA

(TimePeriod id) { this.id = id; }   @OneToMany( cascade =javax.persistence.CascadeType.ALL,fetch=javax

Upgrade to 2.4.1_03

.java:160) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com

Does ObjectDB support lazy loading?

A { @Id @GeneratedValue Long id; @OneToMany(fetch=FetchType.LAZY, cascade =CascadeType.ALL) List list

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

Performance issue in a query due to compareTo calls

) @ElementCollection private Map values = new HashMap (); @OneToOne (fetch = FetchType.LAZY, cascade

Beginners questions

") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY, cascade

Best practise loading big data

; @OneToMany ( cascade = CascadeType . ALL , targetEntity = MyStepBlock . class , fetch = FetchType ... ( cascade = CascadeType . ALL , targetEntity = MyStep . class , fetch = FetchType . LAZY ) ArrayList steps

java.lang.NullPointerException during access a field, only if the classes enhanced

.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java ... . cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM.java:408

Internal exception

.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM ... trace indicates a failure to cascade persist operation from unknown reason during that flush. Any

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

ArrayList (); @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL) public List getOwnedElements ... is to set the fetch type to EAGER: @OneToMany(mappedBy = "owner", cascade = CascadeType.ALL, fetch=FetchType

NullPointerException on TreeSet load

    public static class MyEntity {         @OneToMany( cascade =CascadeType ... {         @OneToMany( cascade =CascadeType.PERSIST, fetch = FetchType.EAGER)  

NullpointerException when execute a commit

.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com.objectdb.o.STM.E(STM ... :169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476) at com

Unexpected Exception during commit

(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o.STA.Q(STA.java:476 ... , during commit an attempt to cascade persist through an inverse (mapped by) collection field fails

ArrayIndexOutOfBoundsException on flush

(orphanRemoval=true, cascade =CascadeType.ALL) private Map _nodes; The TaskNode contains a further Entity

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

{   @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)  

[ObjectDB 2.2.6_02] Unexpected exception (Error 990) at com.objectdb.o.OBC.aJ(OBC.java:961)

) at com.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:156) at com.objectdb.o

ClassCastException thrown when running count query

Query. Then i realized that the cascade option in the entity class is ignored when doing DELETE. I

ObjectDB 2.4.5

global cascade persist in an ORM file. Fixed a NullPointerException during query execution ( issue

[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

ObjectDB 2.6.5

Added optional (experimental) support of using clients with different object model versions. Changed references to new flushed objects from ObjectDB to weak references. Cancelled an exception on cascading removal of an already removed object. Renamed internal Enhancer hidden methods to non

Navigation through lazy loading from Detached Objects

;           @OneToMany( cascade =CascadeType.PERSIST)