ObjectDB Database Search

151-166 of 166 results

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

Relationships and tracking changes

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

Query with MEMBER OF on hash map values

Hello, we want to execute following query: SELECT tc FROM TC tc WHERE ?1 MEMBER OF tc.testMacros.values() But we get an internal ObjectDB exception. It is possible to implement a query for this case at all?   @Entity public class TC { @ OneToMany Map testMacros = new HashMap(); }   btc_es

ObjectDB 2.6.9_06 (embedded): Cascading merge resulting in duplicate objects

This issue maybe related to issue #110 (http://www.objectdb.com/database/issue/110). Because that issue has been closed as "fixed", I am reporting this new issue. This is my class definition: @Entity public abstract class Person {     @ OneToMany (fetch=FetchType.EAGER, cascade

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by" set on @ OneToMany relation. Even if object is fetched with find on the same transaction, merge is very slow. It's because on merge every single relation marked as LAZY is fetch from database. Attached two examples

query hint

={"linkedObjects.pointingTo.nodePath"}) })   the collection is defined as @ OneToMany (fetch=FetchType. LAZY

Performance issue in a query due to internal calls visitRefs and visitKeyRefs

; @Basic private int signalIndex = 0; @ OneToMany (cascade = CascadeType.ALL, targetEntity = TCSignal

Problem with bidirectional link

(I had raised this issue in the past and have finally had time to come back to it and strip down the classes to a minimum). The problem seems to lie in having bidirectional links (viz, I have @ OneToMany Map children and @ManyToOne Entry parent in my classes. I've attached the offending classes

Multiple joins did not return expected result

Hello, I have 3 entity classes: Event - String title Calendar - List @ OneToMany SharedCalendar extends Calendar - Calendar original Now I want to retrieve all events from a specific calendar by its id like: SELECT event FROM Calendar c1, SharedCalendar c2 INNER JOIN c1.events AS event INNER JOIN

Selective merge/cascade of detatched entity

I'm having an issue with my application, and I'm hoping you guys will be able to help. Please forgive typos and obvious errors, I'm having to retype from a non-internet connected network. A contrived example is: @Entity public class Salesman { private String name; @ OneToMany (fetch=FetchType.EAGER

Remove not working

(); emf.close(); } @Entity public static class A { @ OneToMany (mappedBy="a", cascade=CascadeType

New entity objects are duplicated on merge cascading

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

Weird issue with variable naming

.persistence. OneToMany ; import javax.persistence.Persistence; import javax.persistence.Tuple; import javax

JPQL support for mapped by (inverse) collections

;    @ OneToMany (mappedBy="a")         ArrayList list

Freeze during save

{ @ManyToOne(cascade=CascadeType.PERSIST) MyNode parent; @ OneToMany (cascade=CascadeType.PERSIST) List