ObjectDB ObjectDB

Internal Website Search

31-40 of 47 resultsRefresh
19

Find the error...JPA ENTITY HIBERNATE

.persistence.ManyToMany; import javax.persistence.ManyToOne; import javax.persistence.Table ... ") private String email; @ManyToMany @JoinTable(name="chat", joinColumns={@JoinColumn(name="userid1 ... .JoinTable; import javax.persistence.ManyToMany; import javax.persistence.Table; @Entity @Table
19

Mysterious "Attempt to persist a reference to a non managed instance" error

javax.persistence.ManyToMany; import javax.persistence.OneToOne; import static javax.persistence ... =PERSIST) public Ostrich ostrich;     @ManyToMany(cascade=ALL) public Map<String, Index> entries ... answer: Here is the final sample:- Bus.class @ManyToMany(cascade = {CascadeType.ALL}, targetEntity
13

joining of tables

: @ManyToMany @JoinTable(name = "emp_add", joinColumns = @JoinColumn(name = "e_id ... () { return address; } in Address class: @ManyToMany(mappedBy = "address") public Set
13

Are indexes implicitly created for relationships?

Do the following annotations @OneToMany @ManyToOne @ManyToMany @OneToOne imply @Index ? Thanks, Carl FastModel Ben Schreiber Actually these annotations (except @ManyToMany) should apply @Unique on the @One side. But ObjectDB doesn't apply these indexes automatically, because of their overhead
13

Query only works correctly when debug printing results

; @ManyToOne private RequirementLevelEntity wrappingReqLevelEntity; @ManyToMany private List topReqsList; @ManyToMany private List bottomReqsList; private String name; private String
13

Problem with merging / persisitng objects with @Embeddable field

; @Embeddable public class ProductSet implements Serializable { @ManyToMany(fetch = FetchType.EAGER ... extends BaseEntity implements Serializable, Convertable { @ManyToMany(targetEntity = ProductSet
13

Memory leak while merging parent with No Cascade annotation with children

.EntityManagerFactory; import javax.persistence.Id; import javax.persistence.ManyToMany; import ... MyEntity {         @Id         private String name;         @ManyToMany(cascade
13

Merge Issue: Attempt to reuse an existing primary key value

object share the same child on a ManyToMany relationship with Cascade.ALL constraint. public final ...         private String name;         @ManyToMany(cascade = {                 CascadeType
9

Is there a way to set EAGER fetch on all "ToMany" collection relationships

Given that the default seems to be FetchType.LAZY for all collections @OneToMany and @ManyToMany. Such as a configuration option. Instead of having to explicitly set fetch in annotation code in every relationship. webel Dr Darren Kelly No. There is no such configuration option, since having EAGER
9

Speeding up reporting queries with size() on list

: @ManyToMany(targetEntity = Product.class, fetch = FetchType.LAZY) private List<Product> products

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