ObjectDB ObjectDB

Internal Website Search

191-200 of 200 resultsRefresh
8

Performance issue in a query due to compareTo calls

private Map<Integer, String> values = new HashMap<>(); @OneToOne (fetch = FetchType.LAZY ... private long stepNumber; @OneToOne (fetch = FetchType.EAGER) private TCStep step ... as the add operations //per index in the list @ElementCollection (fetch = FetchType.EAGER
7

Puzzler: Not getting cascades on read from Spring context

objects correctly, but in the application running in Jetty with Spring, fetching is not cascading ... dhosek Don Hosek Fetching doesn't work by default for detached objects. Please read see this issue ... Hosek It would be better and more efficient, if possible, to arrange fetching of the relevant data before detachment. support Support
7

Should derived fields of an EmbeddedId be manually maintained by app code?

; } } @EmbeddedId public ECompoundKeyMapItemId id; @ManyToOne(fetch=FetchType.LAZY) @MapsId("cont ... ECompoundKeyMapSubItemId id; @ManyToOne(fetch=FetchType.LAZY) @MapsId("prnt") private ... ; // Attributes which mark another non containment relationship @ManyToOne(fetch=FetchType.LAZY) private
7

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

() + "}" + "[" + id + "]\"" + name + "\"";         }         @ManyToOne(fetch = FetchType.LAZY, cascade = CascadeType.ALL)         A a; //maps: listA_mapped         @OneToMany(fetch = FetchType.LAZY, mappedBy = "a", cascade = CascadeType.ALL)         List<A> listA_mapped;         @OneToMany(fetch
7

Multi threading on DMOs by lazy loading

It is possible to use lazy loading on fields of attached entities by several threads? Example: class EntityZ { @OneToOne(fetch = FetchType.LAZY) EntityX fieldX; @OneToOne(fetch = FetchType.LAZY) EntityY fieldY; @ElementCollection (fetch = FetchType.LAZY) List
7

Removing an entity throws exception

; private String name; private String surname; @OneToOne(cascade=CascadeType.ALL, fetch ... ; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List<Item> itemList; @OneToMany(mappedBy = "customer", fetch= FetchType.LAZY) private List<OtherItem
7

Lazy loading does not work - crud takes long

Relationships. It should be load lazy but i dont know why the query fetch all the Data ... = CascadeType.ALL, orphanRemoval = true, mappedBy="project",fetch = FetchType.LAZY)     private List ... ="project",fetch = FetchType.LAZY)     private List<Advalm> advalm; Entity.class
7

LAZY @ManyToOne field functions as EAGER

as @ManyToOne(fetch=FetchType.LAZY) ? package com.greensoft.objectdb.test.console; import javax ... );         }         @ManyToOne(fetch=FetchType.LAZY, cascade= CascadeType.ALL)         C cLazy;                 @ManyToOne(fetch=FetchType.EAGER, cascade= CascadeType.ALL)         C cEager
7

TreeSet and compareTo() issue

fetch: @OneToMany(fetch = FetchType.EAGER) private Set<DropdownValue> dropdownValues = new ... persist should be added to make the test valid:     @OneToMany(fetch = FetchType.EAGER, cascade
7

Cast exception?

cannot be cast to database.entity.Player From just fetching a single result: TypedQuery<Player> query = em ... :615) java.lang.Thread.run(Thread.java:722) So basically the query fetched the persistent fields ... testing revealed that there is no error on the fetching request. I could have written: Object player

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support