ObjectDB ObjectDB

Internal Website Search

1-10 of 21 resultsRefresh

@MappedSuperclass and @Transient not working as I expected

. But here is the problem: The base class of my entity hierarchy is annotated as @MappedSuperclass, and one of its fields ... .Id; import javax.persistence.MappedSuperclass; import javax.persistence.Transient; import javax.persistence.Version; @MappedSuperclass public class DataObject { @Id @GeneratedValue

mappedSuperClass and subClass Duplicates

When I subclass a mappedSuperClass, a table for both appears in the Explorer. Am I correct to expect that only the subclass appear? If so, please provided any clues for a remedy. Thanks ... billdotnet Bill The super class is shown in the Explorer to enable viewing its schema and to enable opening


javax.persistence Annotation MappedSuperclass Target: Classes Designates a class whose mapping ... defined for it. A class designated with the MappedSuperclass annotation can be mapped in the same way ... : Concrete class as a mapped superclass @MappedSuperclass public class Employee

JPA Annotations for Classes

Reference (JavaDoc) of JPA 2 class annotations, including @Entity, @Embeddable, @IdClass, @Cacheable, @EntityListeners, etc.

ObjectDB Object Database Features

Classes Entity classes (@Entity) Embeddable types (@Embeddable) Mapped super classes (@MappedSuperclass

Broken @ManyToOne reference

: @MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType ... ; } @MappedSuperclass public abstract class B { @Id private String name; } Both objects store ... .MappedSuperclass; @MappedSuperclass public abstract class ChildsSuper {   //  @Id   @ManyToOne

Missing (null) elements in eager loaded references

structure? Super classes: @MappedSuperclass @SequenceGenerator(name = "seq", initialValue = 1 ... = GenerationType.SEQUENCE, generator = "seq") private Long id; etc... } @MappedSuperclass public


the mapping of a relationship defined by a mapped superclass @MappedSuperclass public class ... See Also: Embedded Embeddable MappedSuperclass AttributeOverride JoinColumn[] joinColumns The join


: @MappedSuperclass public class Employee { @Id protected Integer id ... ; } Since: JPA 1.0 See Also: Embedded Embeddable MappedSuperclass AssociationOverride Column column


javax.persistence Annotation AssociationOverrides Target: Classes and fields (including property get methods) Used to override mappings of multiple relationship properties or fields. Example: @MappedSuperclass public class Employee { @Id protected Integer id; @Version

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