ObjectDB Database Search

51-100 of 200 results

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 Just remove the field from the entity class. See Automatic Schema Evolution . Space in the database

Does adding normal fields to a table require a restart of the DB?

I have a table that needs a new non-indexed field.  My DB is in client/server mode.  Do I need to restart the DB?     Trianglehead Json Error Yes. See the note on this manual page . support Support

unable to update table in slave server database

Hi, We are facing below issue in objectdb clustering. Currently in objectdb clustering when master server is down ,in slave server during update operation in table getting below issues. Failed to commit transaction: Attempt to commit a transaction in read only mode[ObjectDB 2.8.2] javax

Field or Table Encryption

Is there a build-in way to encrypt object fields or entire " tables " with annotations?  If not, are there any recommended design patterns? Thanks mrbahr2003 Thomas Gregory Please see this feature request in the issue tracking. If you need selective encryption of types / fields - please describe your suggestion in that issue thread. support Support

Table view does not work for queries

This shows that table view does not work for queries     Trianglehead Json Error The attached database seems to be empty. support Support Here it is.  Not sure why that was empty. Trianglehead Json Error Thank you for this report. Build 2.8.3_04 should fix this issue. support

'DROP TABLE' in ODB?

Let's say I no longer need some entity in my project and after deleting all the objects of this type in database I want to remove this type from schema. How can I do this? Is there something like SQL 'drop table ' in ODB? lwalkowski Lukasz Walkowski This is currently not supported. As far as I

AnnotationRef jakarta.persistence.TableGenerator

is specified for the GeneratedValue annotation. A table generator may be specified on the entity class or ... of any program element in the annotated package has strategy= TABLE and a defaulted plain. The name ... of the table . Defaults to the default catalog. Since: JPA 1.0 Index [] indexes default {} (Optional

AnnotationRef jakarta.persistence.PrimaryKeyJoinColumn

Specifies a primary key column that is used as a foreign key to join to another table . It is used to join the primary table of an entity subclass in the JOINED mapping strategy to the primary table of its superclass; it is used within a SecondaryTable annotation to join a secondary table

AnnotationRef jakarta.persistence.CollectionTable

the table that is used for the mapping of collections of basic or embeddable types. Applied to the collection-valued field or property. By default, the columns of the collection table that correspond ... of the table . If not specified, the default catalog is used. Since: JPA 2.0 ForeignKey foreignKey

AnnotationRef jakarta.persistence.MapKeyColumn

varbinary types. Since: JPA 2.0 String name default "" (Optional) The name of the map key column. The table ... key column is in the collection table for the map value. If the map key is for a ManyToMany entity relationship or for a OneToMany entity relationship using a join table , the map key column is in

EnumRef jakarta.persistence.InheritanceType

Since: JPA 1.0 Enum Constants JOINED A table for each abstract or concrete entity class ... the hierarchy has its own table , but that table does not contain columns mapped to inherited fields or properties, and so the state of an entity instance might be stored across multiple table rows. A join

AnnotationRef jakarta.persistence.Column

. These are only used if table generation is in effect. Since: JPA 3.2 String columnDefinition default ... default "" (Optional) A comment to be applied to the column. This is only used if table generation ... column. Since: JPA 3.2 String table default "" (Optional) The name of the table that contains

AnnotationRef jakarta.persistence.Entity

. An entity has a primary table , mapped using the Table annotation, and may have one or more secondary tables ... fields and properties: a field or property of plain maps to a single plain in one of the tables ... one of the tables mapped by the entity, an plain usually maps to a separate plain, a plain association

EnumRef jakarta.persistence.PessimisticLockScope

and relationships owned by the entity that are contained in join tables are locked if the property jakarta ... ). Locking such a relationship or element collection generally locks only the rows in the join table or collection table for that relationship or collection. This means that phantoms are possible. Since: JPA 2

AnnotationRef jakarta.persistence.AssociationOverride

element is used. If the relationship mapping uses a join table , the joinTable element must be specified to override the mapping of the join table and/or its join columns. Example 1: Overriding ... key constraint for the columns corresponding to the joinColumns element when table generation is in

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 OneToMany mapping using a foreign key mapping strategy, the foreign key is in the table of the target

AnnotationRef jakarta.persistence.ManyToMany

a many-valued association with many-to-many multiplicity, mapping to an intermediate table called the join table . Every many-to-many association has two sides, the owning side and the non-owning, or inverse, side. The join table is specified on the owning side. If the association is bidirectional

AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.name

) The name of the foreign key column for the map key. The table in which it is found depends ... the collection table for the map value. If the join is for a map key for a ManyToMany entity relationship or for a OneToMany entity relationship using a join table , the foreign key column is in a join

AnnotationAttrRef 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 ... a join table , the map key column is in a join table . If the map key is for a OneToMany entity

AnnotationAttrRef jakarta.persistence.JoinColumn.referencedColumnName

relationship mappings other than the cases described here, the referenced column is in the table ... is in the table of the source entity. When used inside a JoinTable annotation, the referenced key column is in the entity table of the owning entity, or inverse entity if the join

AnnotationAttrRef jakarta.persistence.PrimaryKeyJoinColumn.referencedColumnName

default "" (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

AnnotationRef jakarta.persistence.SecondaryTables

secondary tables for an entity. Example 1: Multiple secondary tables assuming primary key columns are named the same in all tables . {@snippet : Since: JPA 1.0 Public Annotation Attributes SecondaryTable [] value default null (Required) The secondary tables for an entity. Since: JPA 1.0

EnumConstRef jakarta.persistence.InheritanceType.JOINED

JPA Enum Constant in jakarta.persistence.InheritanceType JOINED A table for each abstract or ... the entity class. Each class in the hierarchy has its own table , but that table does not contain columns ... across multiple table rows. A join is used to retrieve the state of such entities. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.PrimaryKeyJoinColumn.name

"" (Optional) 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

EnumConstRef jakarta.persistence.PessimisticLockScope.NORMAL

strategy is used, or if the entity is otherwise mapped to a secondary table , this entails locking the row(s) for the entity instance in the additional table (s). Entity relationships for which the locked ... for which the entity does not contain the foreign key (such as relationships that are mapped to join tables or

EnumConstRef jakarta.persistence.PessimisticLockScope.EXTENDED

that are contained in join tables are locked if the property jakarta.persistence.lock.scope is specified ... collection generally locks only the rows in the join table or collection table for that relationship

AnnotationAttrRef jakarta.persistence.TableGenerator.pkColumnValue

"" (Optional) The primary key value in the generator table that distinguishes this set of generated values from others that may be stored in the table . Defaults to a provider-chosen value to store in the primary key column of the generator table Since: JPA 1.0

AnnotationRef jakarta.persistence.Embeddable

have its own table . Instead, the state of an instance is stored in the table or tables mapped by the owning

EnumRef jakarta.persistence.GenerationType

key of type Long, Integer, long , or int , the provider selects between TABLE , SEQUENCE ... . Since: JPA 1.0 TABLE Indicates that the persistence provider must assign primary keys for the entity using an underlying database table to ensure uniqueness. May be used to generate primary keys

AnnotationRef jakarta.persistence.ElementCollection

by means of a collection table . The CollectionTable annotation specifies a mapping to a database table . Example: {@snippet : See Also: CollectionTable Since: JPA 2.0 Public Annotation Attributes

AnnotationAttrRef jakarta.persistence.JoinTable.uniqueConstraints

JPA Annotation Attribute in jakarta.persistence.JoinTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints to be placed on the table . These are only used if table generation is in effect. Defaults to no additional constraints. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.JoinTable.inverseJoinColumns

JPA Annotation Attribute in jakarta.persistence.JoinTable JoinColumn [] inverseJoinColumns default {} (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 defaults as for JoinColumn . Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.CollectionTable.options

JPA Annotation Attribute in jakarta.persistence.CollectionTable String options default "" (Optional) A SQL fragment appended to the generated DDL statement which creates this table . This is only used if table generation is in effect. Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.AssociationOverride.joinTable

JPA Annotation Attribute in jakarta.persistence.AssociationOverride JoinTable joinTable default @JoinTable The join table that maps the relationship. The joinTable element must be specified if a join table is used in the overriding of the mapping of the relationship. The joinTable element must not

AnnotationAttrRef jakarta.persistence.JoinTable.options

JPA Annotation Attribute in jakarta.persistence.JoinTable String options default "" (Optional) A SQL fragment appended to the generated DDL statement which creates this table . This is only used if table generation is in effect. Since: JPA 3.2

AnnotationAttrRef jakarta.persistence.JoinTable.indexes

JPA Annotation Attribute in jakarta.persistence.JoinTable Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.JoinTable.joinColumns

JPA Annotation Attribute in jakarta.persistence.JoinTable JoinColumn [] joinColumns default {} (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 for JoinColumn . Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.JoinTable.name

JPA Annotation Attribute in jakarta.persistence.JoinTable String name default "" (Optional) The name of the join table . Defaults to the concatenated names of the two associated primary entity tables , separated by an underscore. Since: JPA 1.0

AnnotationAttrRef jakarta.persistence.MapKeyJoinColumn.referencedColumnName

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

AnnotationAttrRef jakarta.persistence.JoinTable.comment

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

AnnotationAttrRef jakarta.persistence.JoinTable.check

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

AnnotationAttrRef jakarta.persistence.CollectionTable.joinColumns

JPA Annotation Attribute in jakarta.persistence.CollectionTable JoinColumn [] joinColumns default {} (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

AnnotationAttrRef jakarta.persistence.CollectionTable.indexes

JPA Annotation Attribute in jakarta.persistence.CollectionTable Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.CollectionTable.uniqueConstraints

JPA Annotation Attribute in jakarta.persistence.CollectionTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table . These are only used if table generation is in effect. Since: JPA 2.0

AnnotationRef jakarta.persistence.CheckConstraint

JPA Annotation 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: JPA 3.2 Public Annotation Attributes String constraint default null (Required

AnnotationRef jakarta.persistence.OneToMany

of the relationship. A OneToMany association usually maps a foreign key column or columns in the table ... , a unidirectional OneToMany association is sometimes mapped to a join table using the JoinTable annotation

AnnotationAttrRef jakarta.persistence.MapKeyColumn.unique

at the table level and is useful for when the unique key constraint corresponds to only a single column. This constraint applies in addition to any constraint entailed by primary key mapping and to constraints specified at the table level. Since: JPA 2.0

AnnotationAttrRef jakarta.persistence.SecondaryTable.uniqueConstraints

JPA Annotation Attribute in jakarta.persistence.SecondaryTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are to be placed on the table . These are typically only used if table generation is in effect. These constraints apply in addition to any constraints

AnnotationAttrRef jakarta.persistence.SecondaryTable.indexes

JPA Annotation Attribute in jakarta.persistence.SecondaryTable Index [] indexes default {} (Optional) Indexes for the table . These are only used if table generation is in effect. Since: JPA 2.1

AnnotationAttrRef jakarta.persistence.SecondaryTable.pkJoinColumns

JPA Annotation Attribute in jakarta.persistence.SecondaryTable PrimaryKeyJoinColumn [] pkJoinColumns default {} (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 . Since: JPA 1.0