ObjectDB ObjectDB

Internal Website Search

61-70 of 86 resultsRefresh
8

How to delete M2M relationship?

In user model class I have the following: public class User implements Serializable {     @Id     @GeneratedValue(strategy = GenerationType.AUTO)     private Long id;     @ManyToMany(mappedBy = "attendees", cascade = CascadeType.ALL)     @Cascade(org.hibernate.annotations.CascadeType
8

find() delay

parent;   @OneToMany(mappedBy="parent",fetch=FetchType.EAGER)   protected List<Node> Sons
8

Problem with @OrderBy

When I use @OrderBy and supply multiple order fields I get and error when ObjectDB Explorer expands a instance of the entity. Example code: @Entity @Table(name="Defects", schema = "myDB") public class Defects implements Serializable {     ...     ...     @OneToMany(mappedBy="defect
8

Query only works correctly when debug printing results

(mappedBy = "wrappingReqLevelEntity") private List requirementList; //constructors, getters
8

Possible issue for JPQL IS EMPTY expression

(mappedBy="myentity") ArrayList<OtherEntity> others = new ArrayList<OtherEntity>(); void
8

Unexpeted internal exception

field in GS_TablaPaises @OneToMany(targetEntity = GS_TablaCiudades.class, mappedBy = "paises
8

Cascading persistence through an inverse field

{ @ManyToMany(mappedBy="points", cascade={PERSIST, REFRESH, MERGE}) private Set<PointCollection
8

Problem with merging / persisitng objects with @Embeddable field

.class, mappedBy = "productDemands") List<ProductSet> productSets; lwalkowski Lukasz Walkowski
8

@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 = CascadeType.ALL)         private B another } class B {     @Id     @GeneratedValue
1

Enhanced classes problem

and annotations: @OneToMany(fetch = FetchType.EAGER, mappedBy = "jobInfoId") // relation is unidirectional

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