ObjectDB ObjectDB

Internal Website Search

1-10 of 21 resultsRefresh
176

@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
164

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
104

javax.persistence.MappedSuperclass

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
34

JPA Annotations for Classes

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

ObjectDB Object Database Features

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

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
16

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
10

javax.persistence.AssociationOverride

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

javax.persistence.AttributeOverride

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

javax.persistence.AssociationOverrides

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