ObjectDB Database Search
151-200 of 200 resultsComposite 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 | |
Find the error...JPA ENTITY HIBERNATE.CascadeType; import javax.persistence. Column ; import javax.persistence.Entity; import javax ... Serializable { private static final long serialVersionUID = 1L; // @GeneratedValue @Id @ Column (name = "id") @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @ Column (name = "username") private | |
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 | |
Problem with entities detection; import javax.persistence. Column ; import javax.persistence.Embedded; import javax.persistence.Entity ... ; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @ Column (name = "id_alumno") private Long idAlumno; @ Column (name = "dni") private String dni; @ Column (name = "nombre | |
ObjectDB fast queries access @ Column (name = "pollenDivisionEntityId", insertable = false, updatable = false) @Index private Long pollenDivisionEntityId; @ Column (name = "pollenFamilyEntityId", insertable = false, updatable = false) @Index private Long pollenFamilyEntityId; @ Column (name = "pollenGenusEntityId", insertable | |
alter table column ... alter table add index ... TIA gzdillon Lai Yang There are no tables is ObjectDB. Anyway, alter table add column ... This is automatic - just change your class (see Database Schema ... of "add column "; but I can not find anything about "add index" in the links you given. TIA gzdillon | |
Relationships and tracking changes static final long serialVersionUID = 1L; @Id @ Column (name = "ID") @GeneratedValue(strategy ... implements Serializable{ private static final long serialVersionUID = 1L; @Id @ Column (name = "ID") @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @ManyToOne @ Column (name = "VERLAG | |
jakarta.persistence.JoinColumn.nullable Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn boolean nullable (Optional) Whether the foreign key column is nullable. Default: true Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.JoinColumn.insertable Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn boolean insertable (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Default: true Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.JoinColumn.check Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn CheckConstraint[] check (Optional) Check constraints to be applied to the column . These are only used if table generation is in effect. Default: {} Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.JoinColumn.comment Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn String comment (Optional) A comment to be applied to the column . This is only used if table generation is in effect. Default: "" Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.JoinColumns.value Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumns JoinColumn[] value The join columns that map the relationship. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.JoinTable.joinColumns Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable JoinColumn[] joinColumns (Optional) The foreign key columns of the join table which reference the primary table of the entity owning the association. (I.e. the owning side of the association). Uses the same defaults as | |
jakarta.persistence.JoinTable.inverseJoinColumns Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable JoinColumn[] inverseJoinColumns (Optional) The foreign key columns of the join table which reference the primary table of the entity that does not own the association. (I.e. the inverse side of the association). Uses the same | |
jakarta.persistence.JoinTable.foreignKey Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable ForeignKey foreignKey (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the JoinTable.joinColumns element when table generation is in effect. If both this element | |
jakarta.persistence.JoinTable.inverseForeignKey Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable ForeignKey inverseForeignKey (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the JoinTable.inverseJoinColumns element when table generation is in effect | |
jakarta.persistence.SecondaryTable.foreignKey Jakarta Persistence (JPA) Method in jakarta.persistence.SecondaryTable ForeignKey foreignKey (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the SecondaryTable.pkJoinColumns element when table generation is in effect | |
jakarta.persistence.SecondaryTable.uniqueConstraints specified by Column and JoinColumn annotations and constraints entailed by primary key mappings. Defaults | |
jakarta.persistence.DiscriminatorColumn.name Jakarta Persistence (JPA) Method in jakarta.persistence.DiscriminatorColumn String name (Optional) The name of column to be used for the discriminator. Default: "DTYPE" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.DiscriminatorValue.value Jakarta Persistence (JPA) Method in jakarta.persistence.DiscriminatorValue String value (Optional) The value that indicates that the row is an entity of the annotated entity type. If the DiscriminatorValue annotation is not specified and a discriminator column is used, a provider-specific function | |
jakarta.persistence.DiscriminatorColumn.discriminatorType Jakarta Persistence (JPA) Method in jakarta.persistence.DiscriminatorColumn DiscriminatorType discriminatorType (Optional) The type of object/ column to use as a class discriminator. Defaults to DiscriminatorType.STRING . Default: STRING Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.DiscriminatorColumn.options Jakarta Persistence (JPA) Method in jakarta.persistence.DiscriminatorColumn String options (Optional) A SQL fragment appended to the generated DDL which declares this column . May not be used in conjunction with DiscriminatorColumn.columnDefinition . Default: "" Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.DiscriminatorColumn.length Jakarta Persistence (JPA) Method in jakarta.persistence.DiscriminatorColumn int length (Optional) The column length for String-based discriminator types. Ignored for other discriminator types. Default: 31 Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.CollectionTable.foreignKey Jakarta Persistence (JPA) Method in jakarta.persistence.CollectionTable ForeignKey foreignKey (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the CollectionTable.joinColumns element when table generation is in effect | |
jakarta.persistence.ColumnResult.name Jakarta Persistence (JPA) Method in jakarta.persistence.ColumnResult String name (Required) The name of a column in the SELECT clause of a SQL query Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.PrimaryKeyJoinColumn.options Jakarta Persistence (JPA) Method in jakarta.persistence.PrimaryKeyJoinColumn String options (Optional) A SQL fragment appended to the generated DDL which declares this column . May not be used in conjunction with PrimaryKeyJoinColumn.columnDefinition . Default: "" Since: Jakarta Persistence (JPA) 3.2 | |
jakarta.persistence.PrimaryKeyJoinColumn.foreignKey Jakarta Persistence (JPA) Method in jakarta.persistence.PrimaryKeyJoinColumn ForeignKey foreignKey (Optional) Used to specify or control the generation of a foreign key constraint for the primary key join column when table generation is in effect. If this element is not specified, the persistence | |
jakarta.persistence.AssociationOverride.joinColumns Jakarta Persistence (JPA) Method in jakarta.persistence.AssociationOverride JoinColumn[] joinColumns The join column (s) being mapped to the persistent attribute(s). The joinColumns elements must be specified if a foreign key mapping is used in the overriding of the mapping of the relationship | |
jakarta.persistence.AssociationOverride.foreignKey Jakarta Persistence (JPA) Method in jakarta.persistence.AssociationOverride ForeignKey foreignKey (Optional) Used to specify or control the generation of a foreign key constraint for the columns corresponding to the joinColumns element when table generation is in effect. If both this element | |
jakarta.persistence.AttributeConverter.convertToDatabaseColumn(X) to be converted Returns: the converted data to be stored in the database column . Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Basic.optional Jakarta Persistence (JPA) Method in jakarta.persistence.Basic boolean optional (Optional) Specifies whether the value of the field or property may be null. This is a hint and is disregarded for primitive types; it may be used in schema generation to infer that the mapped column is not null | |
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 | |
String Encoding Issue Hi all Encounter a character encoding issue when i try to retrieve a String column containing Chinese character. Retrieve a String column on odb file. em = emf.createEntityManager(); Query ... ();) { System.out.println(itr.next().getName()); // name is a string column | |
Query perfromance problem column : {}, ascending {}", sortColumn, isAscending); String q = null;   ... with paging order in given way. Now, when running this query with sort column set to 'id', it takes ... - handleRequest: /catalogs/product-list.htm - 10484 ms Refreshing this page with any other column | |
Bulk update of embedded entities in linked list Hi, I'm trying to do a bulk update of a column in an embedded entity, but I end up with a query execution error because of the "." between the column name of the parent entity and column name of the child entity. The column in the parent entity represents a linked list of an embeddable class | |
Wrong @Id type Hi, I have noticed some values of id column suddenly switched to int ... of ObjectDB explorer the type of the id column is displayed as long, as it shold be, but selecting only id column from the database returns some of the ids as integers (screenshots attached). Iterating | |
Criteria query error: Unexpected query token BaseEntityTest() { super(); } @ Column (length = 16) private String testColumn; public String getTestColumn ... ) @GeneratedValue private Long id; /** * Version of object, supporting optimistic lock */ @ Column (name = "opt_lock") @Version() private Long optimisticLock; /** * Flag to disable entity */ @ Column private | |
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 | |
@Convert is not supported? for mapping Java types to RDBMS columns . What is the benefit of using it in an object database ... different (i.e. mapping RDBMS columns to Java types). support Support Thanks for "JPA lifecycle event | |
auto generate timestamp Hi all, How can I create auto timestamping column ? I want the database to generate the timestamp. I tried google but suggested solutions doesn't work in objectDB. http://stackoverflow.com/questions/811845/setting-a-jpa-timestamp- column -to-be-generated-by-the-database - Pawel pawel Pawel | |
how to implement insert ignore in objectdb? I want to implement Insert ignore in Objectdb. means if a column is declared as Unique but in case of duplicate it just ignore that row and should not throw exception. Thanks Manoj Manoj Kumar ... is unclear. support Support But he said the column is specified as unique, right? pcockerell Pete | |
How to query for list of lists ?) @Basic(optional = false) @ Column (name = "id") private Integer id; ... @ Column (name= "reviewSnippets | |
@JoinColumn(nullable=false) During the evaluation of ObjectDB (We're currently developing with EclipseLink/mysql) I noticed was the following: I marked a @ Column as nullable=false Than I tried to save it with the property ... in the API documentation ) because data in ObjectDB is not mapped to SQL, tables and columns | |
Unexpected exception (Error 990) on find something out. When I change my Id to a unique Column it seams to work without an error and the Doctor reports ... should have no effekt // @Id // with this instead of the unique column it won't work @ Column (unique = true, nullable = false, length = 127) private | |
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 | |
Unique Constraint Ignored If i annotate a getter with: @ Column (unique = true) it's simply ignored. If i use @Unique it works perfectly. mosi0815 Ralph Moser Usually ObjectDB silently ignores ORM annotations. This is not ... more difficult - setting unique by using the @ Column annotation is now supported (starting build 2.3.2_04). support Support |