ObjectDB ObjectDB

Internal Website Search

21-30 of 93 resultsRefresh
17

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

javax.persistence.FetchType; import javax.persistence.ManyToOne; import javax.persistence.MapsId ... ; } } @EmbeddedId public ECompoundKeyMapItemId id; @ManyToOne(fetch=FetchType.LAZY) @MapsId("cont ... .ManyToOne; import javax.persistence.MapsId; import javax.persistence.Version; import uk.co.his.test
17

Error 363 - Failed to read value of inverse relationship

= GenerationType.AUTO) private long id; @ManyToOne(optional=false) private ETown town ... <Player> invisibleUsers; @ManyToOne private List<Message> postedMessages = new ArrayList ... ") private Player sender; @ManyToOne private Player address; protected Message
13

find() cost unreasonable time!

    @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name ... .persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToMany ...     @GeneratedValue(strategy=GenerationType.IDENTITY) private int id; @ManyToOne @JoinColumn(name="parent
13

EntityManager.refresh takes a long time

) @NotNull private List<Answer> answers = new ArrayList<Answer>(); @ManyToOne private ... List<Interest> interests = new ArrayList<>(); @ManyToOne(cascade = CascadeType.REFRESH ... > paymentOperations = new ArrayList<>(); @ManyToOne private PersonLevel level; Does i
4

javax.persistence.JoinColumns

must be specified in each such JoinColumn annotation. Example: @ManyToOne @JoinColumns
4

javax.persistence.MappedSuperclass

{ @Id protected Integer empId; @Version protected Integer version; @ManyToOne
4

javax.persistence.EmbeddedId

") @ManyToOne Employee emp; } Since: JPA 1.0 See Also: Embeddable MapsId Learn how to define and use
4

javax.persistence.Embeddable

String localNumber; @ManyToOne PhoneServiceProvider provider
4

javax.persistence.FetchType

ElementCollection ManyToMany OneToMany ManyToOne OneToOne FetchType EAGER Defines that data
4

javax.persistence.AssociationOverrides

protected Integer version; @ManyToOne protected Address address; @OneToOne protected

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