ObjectDB Database Search

1-50 of 53 results

jakarta.persistence.AttributeOverride.column

Jakarta Persistence (JPA) Method in jakarta.persistence.AttributeOverride Column column (Required) The column that is being mapped to the persistent attribute. The mapping type will remain the same as is defined in the embeddable class or mapped superclass. Since: Jakarta Persistence (JPA) 1.0

@Column length is not working.

I am using objectdb 2.8.3, I have a Entity class with a column that is declared as  @ Column ... for that column with a string that has more than 16 character, not able to get any error or exception from ... so its very difficult to validate the column string length. Please find the below project

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

Quick example:  public class MyClass { @ Column (name = "myText") String myText; @Temporal(TemporalType.TIMESTAMP) @ Column (name = "myDate") Date myDate; } Now, when querying the db with: Query q ... a difference. The date column seems to be converted to a String so it can be compared with the query

jakarta.persistence.JoinColumn

: Annotation Target: Method, Field Specifies a column for joining an entity association or element collection. If the JoinColumn annotation itself is defaulted, a single join column is assumed ... Customer class @OneToMany @JoinColumn(name = "CUST_ID") // join column is in the table for Order

jakarta.persistence.MapKeyJoinColumn

key join column is in the collection table, join table, or table of the target entity that is used to represent the map. If no MapKeyJoinColumn annotation is specified, a single join column is assumed ... = "STORE")) @ Column (name = "COPIES_IN_STOCK") @MapKeyJoinColumn(name = "MOVIE", referencedColumnName

jakarta.persistence.MapKeyColumn

: Annotation Target: Method, Field Specifies the mapping for the key column of a map whose map key ... public class Item { @Id int id; ... @ElementCollection @MapKeyColumn(name = "IMAGE_NAME") @ Column (name ... ) The name of the map key column . The table in which it is found depends upon the context. If the map key

jakarta.persistence.ColumnResult

ConstructorResult annotation to map a column of the SELECT list of a SQL query. The name element references the name of a column in the SELECT list — i.e., column alias, if applicable. Scalar result types ... = { @EntityResult( entityClass = com.acme.Order.class, fields = { @FieldResult(name = "id", column = "order_id

jakarta.persistence.DiscriminatorColumn

Interfaces: Annotation Target: Type Specifies the discriminator column for the SINGLE_TABLE and JOINED inheritance mapping strategies . The mapping strategy and discriminator column are only specified ... is applied. If the DiscriminatorColumn annotation is missing, and a discriminator column is required

jakarta.persistence.Index

is given by the following simple BNF: column _list ::= index_ column [, index_ column ]* index_ column ::= column _name [ASC | DESC] If neither ASC nor DESC is not specified, ASC , that is, ascending order ... : "" Since: Jakarta Persistence (JPA) 1.0 String columnList (Required) The columns included in the index, in order

jakarta.persistence.FieldResult

: Annotation Used in conjunction with the EntityResult annotation to map columns specified in ... .Order.class, fields = { @FieldResult(name = "id", column = "order_id"), @FieldResult(name = "quantity", column = "order_quantity"), @FieldResult(name = "item", column = "order_item

jakarta.persistence.ConstructorResult

, passing in as arguments values from the specified columns . All columns corresponding to arguments of the intended constructor must be specified using the columns element of the ConstructorResult ... , columns = { @ColumnResult(name = "id"), @ColumnResult(name = "name"), @ColumnResult(name

jakarta.persistence.Entity

type maps to a single column in one of the tables mapped by the entity, a field of property of embeddable type has nested mappings to multiple columns in one of the tables mapped by the entity ... to a foreign key column or columns in one of the tables mapped by the entity

jakarta.persistence.EntityResult

should select all the columns that are mapped to the entity object. This should include foreign key columns to related entities. The results obtained when insufficient data is available are undefined ... [] fields Maps the columns specified in the SELECT list of the query to the properties or fields

jakarta.persistence.Id

primitive wrapper type; String ; UUID ; Date ; Date ; BigDecimal ; BigInteger . The mapped column for the primary key of the entity is assumed to be the primary key of the primary table. If no Column annotation is specified, the primary key column name is assumed to be the name of the primary key property

jakarta.persistence.JoinTable

Persistence (JPA) 1.0 JoinColumn[] joinColumns (Optional) The foreign key columns of the join table ... ) 1.0 JoinColumn[] inverseJoinColumns (Optional) The foreign key columns of the join table ... key constraint for the columns corresponding to the joinColumns element when table generation is in

jakarta.persistence.InheritanceType

, with only the columns mapped to persistent fields and properties declared by the entity class. Each class in the hierarchy has its own table, but that table does not contain columns mapped ... represented by a row is determined by the value held by a discriminator column . Since: Jakarta Persistence

jakarta.persistence.Embedded

@AttributeOverrides({ @AttributeOverride(name = "startDate", column = @ Column ("EMP_START")), @AttributeOverride(name = "endDate", column = @ Column ("EMP_END"))}) public EmploymentPeriod getEmploymentPeriod

jakarta.persistence.EmbeddedId

to override the column mappings declared within the embeddable class. The MapsId annotation ... column name for "name" attribute is overridden @AttributeOverride(name = "name", column = @ Column (name

jakarta.persistence.DiscriminatorValue

Interfaces: Annotation Target: Type Specifies the value of the discriminator column for the annotated ... . If the DiscriminatorValue annotation is not specified, and a discriminator column is used, a provider ... and the discriminator column are only specified for the root of an entity class hierarchy or subhierarchy in

jakarta.persistence.ForeignKey

for the join column (s) to which the foreign key annotation is applied. See Also: JoinColumn JoinColumns ... it determines most appropriate for the join column or columns to which the foreign key annotation

jakarta.persistence.ManyToOne

association usually maps a foreign key column or columns . This mapping may be specified using the JoinColumn ... must always exist. May be used in schema generation to infer that the mapped foreign key column

Composite Index error 328

kadrosu; private String buroGruplama; private Long groupsHash; @Id @ Column (name = "id") public int getId() { return id; } public void setId(int id) { this.id = id; } @Basic @ Column (name = "dy_id") public int getDyId() { return dyId; } public void setDyId(int dyId) { this.dyId = dyId; } @Basic @ Column

jakarta.persistence.GeneratedValue

") @ Column (name = "CUST_ID") public Long getId() { return id; } Example 2: @Id @GeneratedValue(strategy = TABLE, generator = "CUST_GEN") @ Column (name = "CUST_ID") Long id; See Also: GenerationType Id

jakarta.persistence.Lob

) @ Column (name = "REPORT") protected String report; Example 2: @Lob @Basic(fetch = LAZY) @ Column (name

jakarta.persistence.EntityManager

if there is only one column in the select list.) Column values are returned in the order

jakarta.persistence.GenerationType

for the entity using a database identity column . May be used to generate primary keys of type Long

jakarta.persistence.LockModeType

(increment) to the entity's version column . The persistence implementation is not required to support

jakarta.persistence.JoinColumns

Persistence (JPA) 1.0 Annotation Elements JoinColumn[] value The join columns that map the relationship

jakarta.persistence.MapKeyJoinColumns

(JPA) 2.0 Annotation Elements MapKeyJoinColumn[] value (Required) The map key join columns

jakarta.persistence.MappedSuperclass

to PT_EMP.ADDR_ID fk @ Column (name = "WAGE") protected Float hourlyWage; public PartTimeEmployee

jakarta.persistence.DiscriminatorType

Jakarta Persistence (JPA) Enum jakarta.persistence.DiscriminatorType java.lang.Object ∟ java.lang.Enum ∟ jakarta.persistence.DiscriminatorType Implemented Interfaces: Constable , Comparable , Serializable Defines supported types of the discriminator column . See Also: DiscriminatorColumn

jakarta.persistence.EnumeratedValue

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.EnumeratedValue Implemented Interfaces: Annotation Target: Field Specifies that an annotated field of a Java enum type is the source of database column values for an enumerated mapping. The annotated field must be declared final

Migration problem

class GenericEntity extends BaseEntity { @LastModifiedDate @ Column (columnDefinition = "timestamp default '2020-04-10 20:47:05.967394'") protected LocalDateTime lastModifiedDate; @CreatedDate @ Column ... LocalDateTime createdDate; @CreatedBy @ Column ( updatable = false) protected Integer createSicil

jakarta.persistence.UniqueConstraint.columnNames

Jakarta Persistence (JPA) Method in jakarta.persistence.UniqueConstraint String[] columnNames (Required) The names of the column which make up the constraint. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.valueColumnName

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String valueColumnName (Optional) Name of the column that stores the last value generated. Defaults to a provider-chosen name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.pkColumnValue

the primary key column of the generator table Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.initialValue

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator int initialValue (Optional) The initial value to be used to initialize the column that stores the last value generated. Default: 0 Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.pkColumnName

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String pkColumnName (Optional) Name of the primary key column in the table. Defaults to a provider-chosen name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.ListJoin.index()

element collection for which an order column has been defined. Returns: expression denoting the index. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Table.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.Table UniqueConstraint[] uniqueConstraints (Optional) Unique constraints to be placed on the table. These are only used if table generation is in effect. These constraints apply in addition to any constraints specified by the Column

enumeration table? how to on pure jpa?

like below ? @ Column (field="servername") private String serverName; @ Column (field="username") private String username; @ Column (field="serverPort") private Integer serverPort;      ... there is no field value on Column annotation but i need solution like that on pure JPA if possible. Fastest clear

Beginners questions

implements Serializable { private static final long serialVersionUID = 1L; @Id @ Column (name = "ID ... ; @Id @ Column (name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne @ Column (name = "VERLAG_ID") @JoinColumn(name="VERLAG_ID", insertable=false, updatable=false

Problem with @UniqueConstraint

" }) }) public static final class CI { @Id @GeneratedValue long id; @ Column (name = "NAME" , nullable = false ... columns rather than Java class fields. Therefore, it is silently ignored by ObjectDB, as specified

Is it possible to remove parent/child entities without refresh?

.persistence.CascadeType; import javax.persistence. Column ; import javax.persistence.Entity; import javax ... parent;   @ Column   private String childName;   public ChildEntity() {   }  

Merge with Parent/Child entities not possible

.util.Map; import javax.persistence.CascadeType; import javax.persistence. Column ; import javax ... , CascadeType.REFRESH })   private ParentEntity parent;   @ Column   private String

_PersistenceException: Type is not found on getSingleResult.

;         @ Column     private String identificacion;  

Explorer in 2.3

to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy

Missing Data on Retrieval (0, null values)

I try  to export all Objects in an Flatfile-Hiearchy (.csv). But only the first exported Table contains all necessary Data. Most of the others  contains all  Object-Rows', but most Values of the Columns are missing. With a  em.clear() inside the Loop, all tables are exported

Remove of an entry from a @OneToMany collection is not possible if the enhancer is disabled

.CascadeType; import javax.persistence. Column ; import javax.persistence.Entity; import javax.persistence ... ; entityManager.close();   emf.close(); } @Entity public static class ChildEntity {   @ Column

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

extends AbstractEntity implements IAbstractEntity { @Id @ Column (name = "account_id") @GeneratedValue ... { @Id @ Column (name = "project_id") @GeneratedValue(strategy= GenerationType.TABLE) protected Long id