Internal Website Search

1-50 of 65 results

JPA Entity Fields

superclasses) can be classified into the following five groups: Transient fields Persistent fields Inverse ... , persistent and inverse fields) can be used in both entity classes and embeddable classes . However, the last ... public class Person { @Embedded Address address; } Inverse Fields Inverse (or mapped by) fields

Cascading persistence through an inverse field

Hi! I was playing with cascading persistence with @ManyToMany and inverse  @ManyToMany ... this? Would it perhaps be better to just maintain a regular link on both sides instead of using an inverse field? Thank ... , if you update the owner side only, it is usually fine, as the inverse (mapped by) side will be updated

Mapped (Inverse) LAZY @OneToMany vs. Unmapped LAZY @OneToMany

of ObjectDB the entity snapshot didn't include inverse (mapped by) fields, but currently it does (it may be changed again in future versions), so currently inverse relationships are always loaded eagerly in

Error 363 - Failed to read value of inverse relationship

and the relationships (both forward and inverse ) behave as expected in the Object DB Explorer, however when I ... (); return null; } } Some times other field is the problem that inverse mapped like possibleFriends

JPA Annotations for Relationships

annotations are supported by ObjectDB for the inverse side of a bidirectional relationship

Lazy loading of mapped by (inverse) singular references

ObjectDB ignores lazy setting of non collection mapped by ( inverse ) fields and loads ... , so it is always available. For mapped by ( inverse ) reference fields no information is stored in ... by ( inverse ) fields differently and avoid immediate instantiation. This will require managing in

Bulk load of eager mapped by (inverse) relationships

. However, inverse (mapped by) references that have to be loaded eagerly currently do not ... a separate client-server round trip. Future versions of ObjectDB should load eager mapped by ( inverse ) fields in bulk as well. support Support Bulk load of eager mapped by ( inverse ) singular references is now supported in build 2.4.4_13. support Support

Inverse OneToMany Mapping and EmbeddedId

; objectdb-2.9.0_03  *   *         issue: Inverse @OneToMany(mappedBy ... : Is it possible to map Entitys inverse OneToMany if this are  *        

JPQL support for mapped by (inverse) collections

As discussed and demonstrated in this forum thread , collection operators and methods (IS EMPTY, SIZE, MEMBER OF, IN) are currently not supported for mapped by ( inverse ) collections. These operations are supported for direct (not mapped by) collections. Navigation and JOIN is supported

JPA vs JDO - which is more efficient for OneToMany queries?

ORM-based implementations. By the way, if you define the reference in Order , you can use an inverse ... /entity/fields# Inverse _Fields . A query will still be executed (i.e. navigation from Customer to Order ... with a collection reference (Customer.orders), or b) Use JPA with an inverse reference (Order

How storage works?

. Therefore, if the collection is annotated as inverse (mapped by) the entity object in which the collection ... , only that entity that is added is stored (Wheel). If the collection is not defined as inverse (mapped by ... inverse / mapped by) is usually more efficient in ObjectDB, at least in retrieval

mappedBy problem

class will never persist !!   eml W M Lao There was a bug in cascading operations through inverse ... . Currently inverse (mapped by) fields are not shown. Support of bidirectional links is a new ObjectDB 2 ... ". Therefore, if the owning side (Address) has a null - storing a relationship based on the inverse side (Employee

Problem persisting a TreeSet field

. ObjectDB doesn't enforce this rule for ordinary persistent fields - but mapped by ( inverse ) fields are more limited. The order of elements in a mapped by ( inverse ) collection field is set by ... an ordinary persistent field instead of as an inverse field - remove he mappedBy setting, and update

TimeSeries and ObjectDB

updates. See a recent forum thread , post #5 regarding  Embedded vs. Inverse Collections . support Support Thanks so if I understand correctly - it would be better to use conventional inverse ... : if the database is using indexes efficiently - the inverse mapping would not be required as the database

javax.persistence.JoinColumn.referencedColumnName

column is in the entity table of the owning entity, or inverse entity if the join is part of the inverse

javax.persistence.JoinColumn

table of the owning entity, or inverse entity if the join is part of the inverse join definition

Optimistic locking: prevent version increment on entity collection attribute

to populate the inverse collection (this even with an EAGER read). Please note that the operations ... the Document is null but I guess this is how inverse relationships work. Any other suggestion? Thanks

Problem with @OrderBy

owner.defect inverse WHERE inverse = ?1 ORDER BY owner.seqRel, == noteSeq

Speeding up the creation of Log entity objects related to other objects

an inverse mapped-by relationship . Use a regular reference from Log to Device and mapped-by List field in Device . Inverse mapped-by fields are not stored in the database by loaded by running a query

Listing large number of complicated objects with paging.

of inverse (mapped by) collections. Massive inverse fetch is currently inefficient and has to be improved

javax.persistence.ManyToMany

JPA Annotation ManyToMany Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies a many-valued association with many-to-many multiplicity. Every many-to-many association has two sides, the owning side and the non-owning, or inverse , side. The join table is specified on the owning

javax.persistence.JoinTable.inverseJoinColumns

JPA Annotation Attribute in javax.persistence.JoinTable JoinColumn [] inverseJoinColumns default {} (Optional) The foreign key columns of the join table which reference the primary table of the entity that does not own the association. (I.e. the inverse side of the association). Uses the same defaults as for JoinColumn . Since: JPA 1.0

javax.persistence.JoinTable

which reference the primary table of the entity that does not own the association. (I.e. the inverse

javax.persistence.OneToOne

is only specified on the inverse (non-owning) side of the association. Since: JPA 1.0 boolean optional

javax.persistence.OneToOne.mappedBy

JPA Annotation Attribute in javax.persistence.OneToOne String mappedBy default "" (Optional) The field that owns the relationship. This element is only specified on the inverse (non-owning) side of the association. Since: JPA 1.0

Removing objects where ManyToMany relationships exist

the database intentionally. It depends. On retrieval - inverse (mapped by) collections

Objectdb Doctor

to them from other objects in the database (except references in inverse / mapped by fields

ObjectDB version 2.3 has been released

. Improved error message for invalid mapped by ( inverse ) fields ( issue #473 ). Improved persisting

OrphanRemoval not working?

by ObjectDB for inverse (mapped by) collections. Please try build 2.2.6_04 that should fix

Is it possible to remove parent/child entities without refresh?

an ObjectDB bug in handling inverse (mapped by) collections and maps in reflection mode (note

Bidirectional OneToMany is slow on updated items

, which is a mapped by ( inverse ) collection, and therefore requires a costly query execution You start feeling

EntityManager.refresh takes a long time

running many queries in order to refresh all the inverse (mappedBy) collections, and then recursively

Attempt to execute a query using a closed EntityManager

by ( inverse ) field in that object. This should be avoided when the EntityManager is closed

Possible issue for JPQL IS EMPTY expression

are currently not supported for mapped by ( inverse ) collections. Please see more details and a possible

[ODB1] Chapter 6 - Persistent Objects

from the database. Notice that unbind( ... ) is not exactly an inverse operation of bind

new objects not available in mappedBy associations

with ordinary queries. Only with automatic queries that are used for inverse fields, after the inverse field ... ? The argument to refresh is the object that contains the inverse field. This way you enforce reloading the object and running the automatic query of the inverse field in that object again. ps: setting

ObjectDB 2.5.1

error message when using mapped by ( inverse ) collections and maps of invalid types. Changed JOIN ... on Schema Update during Multithreading activity ( issue #1139 ). Fixed a bug in loading mapped ( inverse ) to-many relationship into an array field ([]) ( issue #1131 ). Fixed a bug in loading mapped ( inverse

Unexpected Exception during commit

, during commit an attempt to cascade persist through an inverse (mapped by) collection field fails ... miss. On the next line other references that are related to the inverse field are used. Maybe that inverse reference field has special type or setting causing this problem.   support Support I've

ObjectDB 2.4.5

Added support of lazy loading of mapped by ( inverse ) singular relationships ( issue #768 ). Added support for using ObjectDB with TomEE / OpenEJB . Improved loading of eager mapped by ( inverse ) relationships ( issue #769 ). Improved performance of database file extending. Fixed a bug in ignoring

Enhanced classes problem

: System.setProperty("objectdb.temp.no-lazy-o2o- inverse ", "true"); or as a JVM parameter: java -Dobjectdb.temp.no-lazy-o2o- inverse =true ... Please let me know if it makes any difference. support Support In

ObjectDB 2.3.3

( issue #562 ). Fixed a NullPointerException in accessing inverse (mapped by) collection fields ... NullPointerException on accessing an inverse collection in an entity that has been garbage collected ( issue #544

ObjectDB 2.7.6

references ( issue #2302 ). Added support of filtering mapped-by ( inverse ) relationship results using a constraint. Changed to-one mapped-by ( inverse ) relationship with multiple matching 

ObjectDB 2.0.0

/ version / inverse (mapped by) fields. Fixed Explorer bug in closing database files. Fixed cascading through inverse (mapped by) fields. Fixed some bugs in automatic schema evolution. Fixed a Server

ObjectDB 2.9.0

( feature request #2855 ). Added support for distinct mapped-by ( inverse ) fields. Improved query plan ... of classifying inherited inverse fields as dependent. Fixed improper use of indexes on collections

ObjectDB 2.2.8

Fixed a critical bug in extensive removal operations of large objects. Improved the performance of navigation through an inverse (mapped by) field if the owner field is indexed. Fixed a LEFT OUTER JOIN bug . Fixed a bug in parsing queries with parenthesis followed by NOT . Fixed a bug in running

NullPointer when accessing persistent field

on accessing an inverse collection in an entity that has been garbage collected. Build 2.3.2_01 fixes

ObjectDB 2.3.0

Java 7 class file format. Improved error message for invalid mapped by ( inverse ) fields ( issue #473

Navigation through lazy loading from Detached Objects

, thanks, Webel. webel Dr Darren Kelly Build 2.3.7_01 fixes NullPointerException in accessing inverse (mapped by) fields after detachment. support Support

ObjectDB 2.6.1

a NullPointerException is merging objects of new types . Fixed a bug in managing inverse (mapped by) collections and maps in reflection mode.

ObjectDB 2.4.2

Fixed a bug in handling mapped super class with no primary key ( issue #864 ). Fixed a bug in handling enum in the primary key ( issue #852 ). Fixed an initialization of inverse (mapped by) fields by JOIN FETCH ( issue #854 ). Fixed type checking of query parameters. Changed merge implementation