ObjectDB Database Search
51-100 of 200 resultsThe attribute column name (EXCEPTION) is a reserved SQL-99 keyword. How do I fix this error/warning that Netbeans gives me? "The attribute column name (EXCEPTION ... but could be with other DBMS. To remove the warning, either rename your field (e.g. to exceptionText ), or add a Column annotation that will map the name of the Java field to another name in the database: @ Column (name | |
@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 | |
@Column( name = "columnName") doesn't work @GeneratedValue @ Column (name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @ Column ... , cascade = CascadeType.ALL) @ Column ( name = "DATA_ITEMS" ) private List dataItems; @OneToOne(fetch ... by ObjectDB (as indicated for example on the Column annotation doc page ). When you use ObjectDB | |
Adding new unique columns What is the best practice for when you need to add a new unique column to an existing database? Simply adding the column with the @Unique annotation will result in "Attempt to reuse an existing value (null)", so the only option I can surmise is to add the column , update all existing entries | |
drop a column from table Hi, I want to drop one column from my database table suppose i have 3 column (id, name, address) now i want to drop address. then what will be the query or procedure.. Bimal Bimal kumar dalei ... a column permanently then what will be the procedure. Bimal Bimal kumar dalei Because the data | |
Index on a low cardinality column up queries." "An index on the gender column likely would not help because there's no value in an index on a low cardinality column . Meaning, there's not enough variety in the values for the index to provide any value." an index on a low cardinality column is generally not recommended as | |
Entity with java.util.Date column gives ClassCastException in BIRT; private boolean privacy; @ Column (name="birthdate")   ... .engine.odaconsumer.OdaDataException: Cannot get the timestamp value column : 3. org | |
Unable to create 128 column of a table. Hi, Can we create 128 column of table? am getting following error. java.lang.ArrayIndexOutOfBoundsException: -128 at com.objectdb.o.ALS.g(ALS.java:135) at com.objectdb.o.ANT.G(ANT.java:594) at com.objectdb.o.ANT.x(ANT.java:526) at com.objectdb.o.SCM.o(SCM.java:175) at com.objectdb.o.TYS.d(TYS.java | |
How can allow multiple null value in a Unique column. of a Column ? Eg: Name : null (allow) Name : xyx (allow) Name : null (allow) Name : abc (allow) Name | |
How to delete a specific column data form a entity. query instead and set the field ( column ) to null . support Support Ok Tank you Manoj Manoj Kumar Maharana | |
Make Column values Case insensitive How do make table column values to case insensitive in object db 2.8.1 version? objdbuser This is currently not supported. A possible workaround is to keep a case-insensitive copy of the relevaant string in a separate field. e.g. in a lowercase format. support Support | |
jakarta.persistence.TableGenerator pkColumnName (Optional) Name of the primary key column in the table. Defaults to a provider-chosen ... of the column that stores the last value generated. Defaults to a provider-chosen name. Default ... . Defaults to a provider-chosen value to store in the primary key column of the generator table | |
jakarta.persistence.JoinColumn.name of the foreign key column . The table in which this column is found depends on the context ... column is in the table of the source entity or embeddable. If the join is for a unidirectional ... is for an ElementCollection , the foreign key is in a collection table. Default (only applies if a single join column is used | |
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 | |
jakarta.persistence.AssociationOverride its join columns . Example 1: Overriding the mapping of a relationship defined by a mapped superclass ... [] joinColumns The join column (s) being mapped to the persistent attribute(s). The joinColumns elements ... (Optional) Used to specify or control the generation of a foreign key constraint for the columns | |
jakarta.persistence.OneToMany key column or columns in the table of the associated entity. This mapping may be specified using ... : @OneToMany(orphanRemoval = true) @JoinColumn(name = "CUST_ID") // join column is in table | |
jakarta.persistence.MapKeyJoinColumn.name) The name of the foreign key column for the map key. The table in which it is found depends upon the context. If the join is for a map key for an element collection, the foreign key column is in ... for a OneToMany entity relationship using a join table, the foreign key column is in a join table | |
jakarta.persistence.MapKeyJoinColumn.referencedColumnName referencedColumnName (Optional) The name of the column referenced by this foreign key column . The referenced column is in the table of the target entity. Default (only applies if single join column is being used.) The same name as the primary key column of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.CollectionTable.joinColumns (Optional) The foreign key columns of the collection table which reference the primary table of the entity. The default only applies if a single join column is used. The default is the same as ... of the referenced primary key column .) However, if there is more than one join column , a JoinColumn annotation | |
jakarta.persistence.MapKeyColumn.name) The name of the map key column . The table in which it is found depends upon the context. If the map key is for an element collection, the map key column is in the collection table for the map value ... table, the map key column is in a join table. If the map key is for a OneToMany entity relationship | |
jakarta.persistence.MapKeyJoinColumn.table) The name of the table that contains the foreign key column . If the join is for a map key for an element collection, the foreign key column is in the collection table for the map value. If the join ... a join table, the foreign key column is in a join table. If the join is for a OneToMany entity | |
jakarta.persistence.PrimaryKeyJoinColumn.name) The name of the primary key column of the current table. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping); or the same name as the primary | |
jakarta.persistence.PrimaryKeyJoinColumn.referencedColumnName referencedColumnName (Optional) The name of the primary key column of the table being joined to. Defaults to the same name as the primary key column of the primary table of the superclass ( JOINED mapping strategy); the same name as the primary key column of the primary table ( SecondaryTable mapping); or | |
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.Version . This field declares a version number: @Version @ Column (name = "REVISION") protected int version; This field declares a revision timestamp: @Version @ Column (name = "LAST_UPDATED") private Instant | |
jakarta.persistence.criteria.CriteriaUpdate the value of the version column , if desired, and/or manually validate the value of the version column | |
jakarta.persistence.CheckConstraint Jakarta Persistence (JPA) Annotation Type jakarta.persistence.CheckConstraint Implemented Interfaces: Annotation Used to specify a SQL check constraint on a column or table when schema generation is in effect. See Also: Table::check() Column ::check() Since: Jakarta Persistence (JPA) 3.2 Annotation | |
jakarta.persistence.SecondaryTables secondary tables assuming primary key columns are named the same in all tables. @Entity @Table(name ... primary key columns . @Entity @Table(name = "EMPLOYEE") @SecondaryTables({ @SecondaryTable(name = "EMP | |
jakarta.persistence.NamedNativeQuery of the native SQL query. Alternatively, the elements entities , classes , and columns may be used ... ) 3.2 ColumnResult[] columns Specifies the result set mapping to scalar values. May not be used in | |
jakarta.persistence.OrderBy within it. The properties or fields used in the ordering must correspond to columns for which comparison ... the ordering. The OrderBy annotation is not used when an order column is specified using OrderColumn | |
jakarta.persistence.SecondaryTable.pkJoinColumns Jakarta Persistence (JPA) Method in jakarta.persistence.SecondaryTable PrimaryKeyJoinColumn[] pkJoinColumns (Optional) The columns that are used to join with the primary table. Defaults to the column (s) of the same name(s) as the primary key column (s) in the primary table. Default: {} Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.AttributeConverter.convertToEntityAttribute(Y) convertToEntityAttribute ( Y dbData ) Converts the data stored in the database column into the value ... the correct dbData type for the corresponding column for use by the JDBC driver: i.e., persistence ... the database column to be converted Returns: the converted value to be stored in the entity attribute. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Index.columnList Jakarta Persistence (JPA) Method in jakarta.persistence.Index String columnList (Required) The columns included in the index, in order, following the BNF rule column _list given above. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityResult.discriminatorColumn Jakarta Persistence (JPA) Method in jakarta.persistence.EntityResult String discriminatorColumn Specifies the column name (or alias) of the column in the SELECT list that is used to determine the type of the entity instance. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.ForeignKey.value will generate a constraint whose update and delete actions it determines most appropriate for the join column or columns to which the foreign key annotation is applied. ConstraintMode.NO_CONSTRAINT specifies | |
jakarta.persistence.InheritanceType.JOINED Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.InheritanceType JOINED A table for each abstract or concrete entity class, with only the columns mapped to persistent fields ... does not contain columns mapped to inherited fields or properties, and so the state of an entity | |
jakarta.persistence.EntityManager.createNativeQuery(String) if there is only one column in the select list.) Column values are returned in the order | |
jakarta.persistence.OrderColumn.columnDefinition Jakarta Persistence (JPA) Method in jakarta.persistence.OrderColumn String columnDefinition (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to generated SQL to create a column of the inferred type. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.MapKeyColumn.unique Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn boolean unique (Optional) Whether the column is a unique key. This is a shortcut for the UniqueConstraint annotation at the table level and is useful for when the unique key constraint corresponds to only a single column | |
jakarta.persistence.MapKeyColumn.length Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn int length (Optional) The column length. Applies only to columns whose type is parameterized by length, for example, varchar or varbinary types. Default: 255 Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.MapKeyColumn.precision Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn int precision (Optional) The precision for a column of SQL type decimal or numeric , or of similar database-native type. Applies only to columns of exact numeric type. The default value 0 indicates that a provider-determined | |
jakarta.persistence.MapKeyColumn.scale Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn int scale (Optional) The scale for a column of SQL type decimal or numeric , or of similar database-native type. Applies only to columns of exact numeric type. The default value 0 indicates that a provider-determined precision | |
jakarta.persistence.MapKeyColumn.columnDefinition Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn String columnDefinition (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to the generated SQL to create a column of the inferred type. Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.MapKeyJoinColumn.columnDefinition Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyJoinColumn String columnDefinition (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to SQL generated by the provider for the column . Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.JoinColumn.columnDefinition Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn String columnDefinition (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults to the generated SQL for the column . Default: "" Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.JoinColumn.table Jakarta Persistence (JPA) Method in jakarta.persistence.JoinColumn String table (Optional) The name of the table that contains the column . If a table is not specified, the column is assumed to be in the primary table of the applicable entity. Default: If the join is for a OneToOne or ManyToOne |