ObjectDB Database Search

151-200 of 200 results

Beginners questions

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

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade =CascadeType.ALL, optional=false) private B b; @Id @Column(length = 36) private String stringId; } @MappedSuperclass public

Bidirectional OneToMany is slow on updated items

: @OneToMany( cascade = {CascadeType.ALL}, fetch = FetchType.LAZY/*, mappedBy = "person"*/) private Set

Upgrade to 2.4.1_02

. cascade (TVS.java:156) at com.objectdb.o.TVS.g(TVS.java:105) at com.objectdb.o.TVS.g(TVS.java:93

LEFT (OUTER) JOIN problem when mappedBy is defined

, cascade = CascadeType.ALL) private List itemList = new ArrayList (); private String name; public

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

{ @ManyToOne (targetEntity = DataTypeImpl.class, cascade = {CascadeType.ALL }, fetch = FetchType.LAZY

Mapped By Fetch is very Slow

= null;   @OneToOne(targetEntity = MyEntityChild.class, cascade = CascadeType.ALL,mappedBy

Annotate a Map field with @ElementCollection or @Basic

and therefore excluded (as optimisation) from automatic cascading . You can also try @OneToMany(fetch

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

InternalException when reading a HashMap

.o.TVS.e(TVS.java:170) at com.objectdb.o.TVS. cascade (TVS.java:157) at com.objectdb.o.TVS.b(TVS.java

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading , to find the removed call for the detached entity.   It would be very helpful if you can add a few information

OEM licencing limitation

= FetchType.EAGER, cascade = CascadeType.ALL) private Map vars = new TreeMap

Unexpeted internal exception

.class, mappedBy = "paises", cascade = CascadeType.ALL) private ListProperty listaCiudades = new

Attempt to refresh a non managed entity object (error 635)

David Moshal This error message indicates invoking refresh (explicitly or implicitly by cascading

Problem with merging / persisitng objects with @Embeddable field

public class ProductSet implements Serializable { @ManyToMany(fetch = FetchType.EAGER, cascade

@OneToOne query issue with OR and IS NULL

Hello, I'm struggeling to get a query run right. I have 2 entities (simplified) class A {     @Id     @GeneratedValue     private Long key;          @OneToOne(mappedBy = "other", cascade

Embedded Entity in EmbeddedId not persisted. Error 631 at select.

static class AId {     @OneToOne( cascade = CascadeType.PERSIST)    

List always null

; @OneToMany(targetEntity = Noticia.class, mappedBy = "categorias", cascade = CascadeType.PERSIST

Failing to read entities under load in multithreaded tests

= 6249921651146397564L; @OneToOne( cascade =CascadeType.REFRESH, fetch=FetchType.EAGER) private TestEntity

PostUpdate collection null

, cascade =CascadeType.PERSIST)         List myCollection = new

Repair broken references in entities

Hello, it is possible to recover an entity that has been removed automatically by CascadeType.Remove. After cascade remove the removed entity will be persisted with the identical primary key. Are all broken references in other entities on this removed/persisted entity repaired again? best regards

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

=FetchType.LAZY, mappedBy="modell", cascade =CascadeType.ALL) private List articles = new ArrayList (); public

Removing an entity throws exception

; @OneToOne( cascade =CascadeType.ALL, fetch=FetchType.EAGER,         

orphanRemoval = true not working when CascadeType.REMOVE is disabled

, addresses=[Address{name='name_2'}, Address{name='name_3'}]} I'm try use  @OneToMany( cascade

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

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

Help understanding Entity behavior with JPA

Hi Support,   We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as:   @OneToOne(orphanRemoval=true, cascade =CascadeType.ALL, fetch=FetchType.EAGER) private Object payload; the list that we put in the 'payload

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

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 children; // in the child @ManyToOne private Parent parent; Somewhere I do this: parent.getChildren().remove(0); manager.merge(parent

Failed to generate dynamic type objectdb.java.util.ArrayList

.objectdb.o.TVS.j(TVS.java:169) at com.objectdb.o.TVS. cascade (TVS.java:146) at com.objectdb.o.STA.Q(STA

Weird behaviour with enhanced classes and embedded entities

; int    id;     @OneToMany( cascade = CascadeType.ALL, fetch = FetchType

Relationships and tracking changes

= GenerationType.AUTO) private Long id; @OneToMany (fetch=FetchType.LAZY, cascade =CascadeType.ALL, mappedBy

On initialisation of lists: impact on migration from EclipseLink to ObjectDB

, will be done by EntityManager.persist() @OneToMany( cascade =CascadeType.ALL) public List getBlocks

Storing a tree of data (depth=3)

; /** real name of person in life. */ @NonNull @ManyToOne( cascade = CascadeType.MERGE) private Performer

how to query by properties of onetomany relations? (Error 990)

class Foo {         @OneToMany( cascade =CascadeType.PERSIST)  

ObjectDB 2.6.4

Added memory only database mode. Added an option to cascade detachment to embedded objects . Added an option to disable reuse of database page objects . Improved release of query resources. Improved memory management in multi flush transactions. Extended detachment of embedded objects

ObjectDB 2.6.0

on cascading persistence through a mapped by collection ( issue #1563 ). Fixed a bug in using enhanced

ObjectDB 2.4.2

automatic cascading through embedded objects. Fixed a bug in clearing persistent properties of primitive

ObjectDB 2.4.7

Fixed bugs in cascading merge and refresh. Fixed an internal  java.lang.ArrayStoreException bug (com.objectdb.o.InvToOneLoadRequest). Fixed a regression bug (starting 2.4.4_13) in handling embeddable types. Fixed a performance regression (since 2.4.4_01) in query result retrieval. Added INFO

ObjectDB 2.2.4

bugs in using flush. Fixed bugs in cascading merge. Fixed a multithreading deadlock bug . Fixed a bug

ObjectDB 2.3.3

with cascading persist after updating the database and before commit (issue #544 ). Fixed

ObjectDB 2.7.1

Fixed a critical bug that may cause database corruption ( issue #1977 ). Improved error messages on entity operation exceptions. Fixed a NullPointerException  on cascading persist throw an unloaded collection ( issue #2049 ). Fixed the location of a temporary file for index update ( issue

ObjectDB 2.7.6

Added support of an option to disable broken reference cleaning in the Doctor ( feature request #2341 ). Added support of cascading delete using JDO ( feature request #2329 ). Added logging for "Failed to read from file" error ( issue #2322 ). Added an option for eager background purge of weak

ObjectDB 2.7.3

Fixed a bug in query execution optimization ( issue #2170 ). Fixed cascading delete through unloaded (lazy) relationships. Fixed a NullPointerException when using "objectdb.temp.page-file" ( issue #2163 ) Added logging and suspend exception for  issue #2153 . Fixed a bug in using SIZE with

ObjectDB 2.5.7

Added Refresh toolbar button and accelerator key in the Explorer. Added support of retrieving database connection details. Fixed unstable activation in Mac OS. Fixed a bug in using FETCH JOIN in criteria queries. Fixed a bug in cascading remove when orphan removal is set. Fixed

ObjectDB 2.0.0

/ version / inverse (mapped by) fields. Fixed Explorer bug in closing database files. Fixed cascading

ObjectDB 2.6.2

of the containing entity ( issue #1620 ). Fixed a bug in cascading detach through unloaded inverse (mapped by) collection.

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

.."); em.getTransaction().begin(); em.persist(project); //rely on Cascade all on ownedElements. em

ObjectDB 2.4.0

on mapped by collections). Fixed object duplication on cascading merge ( issue  #595 ). Fixed