ObjectDB Database Search

1-50 of 200 results

AnnotationRef jakarta.persistence.Column

JPA Annotation Column Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies the column mapped by the annotated persistent property or field. If no Column annotation is explicitly ... CheckConstraint [] check default {} (Optional) Check constraints to be applied to the column

The 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

AnnotationAttrRef jakarta.persistence.Column.secondPrecision

JPA Annotation Attribute in jakarta.persistence. Column int secondPrecision default -1 (Optional) The number of decimal digits to use for storing fractional seconds in a SQL time or timestamp column . Applies only to columns of time or timestamp type. The default value -1 indicates that fractional

@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

AnnotationAttrRef jakarta.persistence.Column.scale

JPA Annotation Attribute in jakarta.persistence. Column int scale default 0 (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 scale should be inferred. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.precision

JPA Annotation Attribute in jakarta.persistence. Column int precision default 0 (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 precision should be inferred. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.columnDefinition

JPA Annotation Attribute in jakarta.persistence. Column String columnDefinition default "" (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. The specified DDL must be written in the native SQL

AnnotationAttrRef jakarta.persistence.AttributeOverride.column

JPA Annotation Attribute in jakarta.persistence.AttributeOverride Column column default null (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: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.length

JPA Annotation Attribute in jakarta.persistence. Column int length default 255 (Optional) The column length. Applies only to columns whose type is parameterized by length, for example, varchar or varbinary types. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.table

JPA Annotation Attribute in jakarta.persistence. Column String table default "" (Optional) The name of the table that contains the column . If absent the column is assumed to be in the primary table. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.unique

JPA Annotation Attribute in jakarta.persistence. Column boolean unique default false (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

AnnotationAttrRef jakarta.persistence.FieldResult.column

JPA Annotation Attribute in jakarta.persistence.FieldResult String column default null Name of the column in the SELECT clause - i.e., column aliases, if applicable. Since: JPA 1.0

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

AnnotationAttrRef jakarta.persistence.Column.options

JPA Annotation Attribute in jakarta.persistence. Column String options default "" (Optional) A SQL fragment appended to the generated DDL which declares this column . May not be used in conjunction with () . The specified DDL must be written in the native SQL dialect of the target database, and is not portable across databases. Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.Column.comment

JPA Annotation Attribute in jakarta.persistence. Column String comment default "" (Optional) A comment to be applied to the column . This is only used if table generation is in effect. Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.Column.check

JPA Annotation Attribute in jakarta.persistence. Column CheckConstraint [] check default {} (Optional) Check constraints to be applied to the column . These are only used if table generation is in effect. Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.Column.updatable

JPA Annotation Attribute in jakarta.persistence. Column boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.insertable

JPA Annotation Attribute in jakarta.persistence. Column boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.name

JPA Annotation Attribute in jakarta.persistence. Column String name default "" (Optional) The name of the column . Defaults to the property or field name. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.Column.nullable

JPA Annotation Attribute in jakarta.persistence. Column boolean nullable default true (Optional) Whether the database column is nullable. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.ConstructorResult.columns

JPA Annotation Attribute in jakarta.persistence.ConstructorResult ColumnResult [] columns default null (Required) The mapping of columns in the SELECT list to the arguments of the intended constructor, in order. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.NamedNativeQuery.columns

JPA Annotation Attribute in jakarta.persistence.NamedNativeQuery ColumnResult [] columns default {} Specifies the result set mapping to scalar values. May not be used in combination with resultSetMapping . Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.SqlResultSetMapping.columns

JPA Annotation Attribute in jakarta.persistence.SqlResultSetMapping ColumnResult [] columns default {} Specifies the result set mapping to scalar values. Since: JPA 1.0

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

Comparison in JPQL and Criteria API

each comparison operator. One column presents a comparison of NULL value with a non NULL value. The other column presents a comparison of two NULL values: Operators One NULL operand Two NULL operands

Database Explorer

a single object, every column represents a persistent field, and the content of a cell is the value ... columns in Table viewer windows. The [Tree View] determines which fields are displayed as child nodes

AnnotationRef jakarta.persistence.JoinColumn

a column for joining an entity association or element collection. If the JoinColumn annotation itself is defaulted, a single join column is assumed and the default values apply. Example: {@snippet ... to the column . These are only used if table generation is in effect. Since: JPA 3.2 String columnDefinition

AnnotationRef jakarta.persistence.MapKeyJoinColumn

a mapping to an entity that is a map key. The map key join column is in the collection table, join ... annotation is specified, a single join column is assumed and the default values apply. Example 1 ... default "" (Optional) The SQL fragment that is used when generating the DDL for the column . Defaults

AnnotationRef jakarta.persistence.MapKeyColumn

the mapping for the key column of a map whose map key is a basic type. If the name element is not ... for the column . Defaults to the generated SQL to create a column of the inferred type. Since: JPA 2.0 boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements

AnnotationRef jakarta.persistence.PrimaryKeyJoinColumn

Specifies a primary key column that is used as a foreign key to join to another table. It is used ... is specified for a subclass in the JOINED mapping strategy, the foreign key columns are assumed to have the same names as the primary key columns of the primary table of the superclass. Example: Customer

AnnotationRef jakarta.persistence.CollectionTable

to the collection-valued field or property. By default, the columns of the collection table that correspond ... from the basic type according to the default values of the Column annotation. In the case of a basic type, the column name is derived from the name of the collection-valued field or property. In the case

AnnotationRef jakarta.persistence.OrderColumn

a column that is used to maintain the persistent order of a list. The persistence provider ... on the side of the relationship that references the collection that is to be ordered. The order column is not visible ... is not used when OrderColumn is specified. The order column must be of integral type

AnnotationRef jakarta.persistence.SecondaryTable

table. If no primary key join columns are specified, the join columns are assumed to reference the primary key columns of the primary table, and have the same names and types as the referenced primary key columns of the primary table. Example 1: Single secondary table with a single primary key

AnnotationRef jakarta.persistence.DiscriminatorColumn

the discriminator column for the SINGLE_TABLE and JOINED plain. The mapping strategy and discriminator column are only specified for the root of an entity class hierarchy or subhierarchy in ... , and a discriminator column is required, the name of the discriminator column defaults to "DTYPE"

AnnotationAttrRef jakarta.persistence.JoinColumn.referencedColumnName

"" (Optional) The name of the column referenced by this foreign key column . When used with entity relationship mappings other than the cases described here, the referenced column is in the table of the target entity. When used with a unidirectional OneToMany foreign key mapping, the referenced column

Step 6: Design a BIRT Report Table

) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X ) in the third field and click OK . Fill the table with data by dragging the x and y columns from

AnnotationAttrRef jakarta.persistence.JoinColumn.name

) The 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

AnnotationRef jakarta.persistence.Index

creation of an index. The syntax of the columnList element is given by the following simple BNF: column _list ::= index_ column [, index_ column ] index_ column ::= column _name [ASC | DESC] If neither ASC ... .1 Public Annotation Attributes String columnList default null (Required) The columns included in

AnnotationRef jakarta.persistence.ColumnResult

with the SqlResultSetMapping , NamedNativeQuery , or 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 can be included in the query result by specifying

AnnotationRef jakarta.persistence.ConstructorResult

the specified columns . All columns corresponding to arguments of the intended constructor must be specified using the columns element of the ConstructorResult annotation in the same order as that of the argument ... = { @ConstructorResult( targetClass = com.acme.CustomerDetails.class, columns

AnnotationRef jakarta.persistence.EntityResult

result. If this annotation is used, the SQL statement should select all the columns that are mapped to the entity object. This should include foreign key columns to related entities. The results ... Annotation Attributes String discriminatorColumn default "" Specifies the column name (or alias

AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.referencedColumnName

default "" (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. Since: JPA 2.0