ObjectDB ObjectDB

Internal Website Search

1-10 of 32 resultsRefresh
183

enumeration table? how to on pure jpa?

Hello , I've relational db , and there is some table named enumerations with , some key and values ... application configs. Like; tablename : enumeration table rows: key            value servername ... (name="enumerations") public class Enumerations { //Field binding possible like
107

javax.persistence.Enumerated

javax.persistence Annotation Enumerated Target: Fields (including property get methods) Specifies that a persistent property or field should be persisted as a enumerated type. The Enumerated ... with the ElementCollection annotation when the element collection value is of basic type. If the enumerated type is not
98

Enumerated.value

Annotation Element javax.persistence.Enumerated EnumType value (Optional) The type used in mapping an enum type. Default value: javax.persistence.EnumType.ORDINAL Since: JPA 1.0
38

JPA Persistable Types

must be fixed, since changing a name can cause data loss in existing databases. The @Enumerated ... ; // default is EnumType.ORDINAL @Enumerated(EnumType.ORDINAL) Color color2; @Enumerated
34

@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions.

When the following annotation is present on an enum type entity field: @Enumerated(EnumType.STRING ... is a list of Enums). See also the attached test case (play with adding and removing the Enumerated ... you for this report. The bug can be easily repeated by changing the example in forum post #1254 to @Enumerated
17

javax.persistence.EnumType

> Defines mapping for enumerated types. The constants of this enumerated type specify how a persistent property or field of an enumerated type should be persisted. Since: JPA 1.0 Learn how to define and use enum fields in Chapter 2 of the ObjectDB/JPA manual. EnumType ORDINAL Persist enumerated type
11

javax.persistence.MapKeyEnumerated

) Specifies the enum type for a map key whose basic type is an enumerated type. The MapKeyEnumerated ... with the ElementCollection, OneToMany, or ManyToMany annotation. If the enumerated type is not specified or the MapKeyEnumerated annotation is not used, the enumerated type is assumed to be ORDINAL
6

EnumType.STRING

Enum Constant javax.persistence.EnumType STRING Persist enumerated type property or field as a string. Since: JPA 1.0
6

EnumType.ORDINAL

Enum Constant javax.persistence.EnumType ORDINAL Persist enumerated type property or field as an integer. Since: JPA 1.0
0

javax.jdo.annotations.IdentityType

javax.jdo.annotations Enum IdentityType java.lang.Object java.lang.Enum<javax.jdo.annotations.IdentityType> javax.jdo.annotations.IdentityType Implemented Interfaces: Serializable, Comparable<IdentityType> Enumeration of the identity type values. Since: JDO 2.1 IdentityType APPLICATION

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