ObjectDB Database Search

51-100 of 200 results

alter table

Hi: After a table built by real data, how to alter table structure, such as: alter table add 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

joining of tables

want  join tow table and generate a third table . Ex:   table 1: employee     table 2: address  and the generate table will be table 3: emp_add employee: e_id, e_name address: add_id, city, house_no; the third table will be like. emp_add: e_id, add_id i am using annotation like

how to create only table structure.

hi, I want to create only a table without insertions of data. And also table contains constraints like not_null, unique, primary key etc. Ex: (In sql) create table emp (id int(5) primary key, name varchar2(20)); , so it will create only table . when we want to see the table structure

How to Remove records from many to many relationship tables in JPA

have Relation tables     TransportationEvent  and Conclusion  , relations like @Entity ... = new ArrayList (); .... } here in database i have got another two table like Conclusion ... need to delete  records in both tables (TransportationEvent and Conclusion) here i am trying

Table View for queries in the explorer ?

Hi Is there anyway to get the table view , rather than the tree view, when I'm running queries ... Newman You can run a query in the Explorer also by selecting [Window Open Table Window] from the menu (or clicking the table icon in the toolbar) when the query window is active, and then the results

Warmup ( preLoad all table rows into memory )

Hi , I have 3 questions for objectdb : 1-) How can i preload all table rows into memory in objectdb ? So i can query fast. I have seen @Cacheable annotation. But i need warmup table to memory when my software boots up.   2-) Also for speed up I am inserting a message into table

enumeration table? how to on pure jpa?

Hello , I've relational db , and there is some table named enumerations with , some key and values ... application configs. Like; tablename : enumeration table rows: key       ... ? Like this: @Entity @ Table (name="enumerations") public class Enumerations { //Field binding possible

Duplicate a table

Hello, I would like to know if it's possible to copy the content of a table representing one class of object to another table whithout having to use java object (no object instantiation) ? In fact ... a table before erasing the content. Thanks. Linuski christophe LASKAWIEC You will have to write code

Populating JavaFx table from ObjectDB

Please I have being working on an application, and I am experiencing some challenges populating my javaFx table from ObjectDB, Please I don't know if I can get a sample code for populating javaFx table from ObjectDB that could aid my Project. Jerry Onoja Jerry You may check the following links

impossible to drop a table with 50 million objects

when trying to execute in explorer (max heap size 1GByte) delete from LogEntry l it comes up with a Java heap error after 20 minutes of executing. How to empty such a table ?     hgzwicker Hans-Georg Zwicker This may be because the transaction size is limited by the heap size

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

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

jakarta.persistence.DiscriminatorColumn

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.DiscriminatorColumn Implemented Interfaces: Annotation Target: Type Specifies the discriminator column for the SINGLE_ TABLE and JOINED ... to DiscriminatorType.STRING . Example: @Entity @ Table (name = "CUST") @Inheritance(strategy = SINGLE_ TABLE

jakarta.persistence.OneToMany

key column or columns in the table of the associated entity. This mapping may be specified using ... to a join table using the JoinTable annotation. The OneToMany annotation may be used ... : @OneToMany(orphanRemoval = true) @JoinColumn(name = "CUST_ID") // join column is in table

Table view freezes the program

This shows pressing an Entity and pressing Table view freezes the program, this is a remote DB not ... , but if yo just open table view like in the video it's slow/freezes.   Trianglehead Json Error ... Error It seems challenging to repeat this issue: the table is opened quickly in both embedded mode

Deletion of an entry via the table window always deletes the last entry not the selected one

If I open a class in the explorer via the "Open Table Window" button, select a row by its index and prex "Del" or use right click "Delete" the last entry of the table is removed and not the selected ... you for your report but unfortunately we cannot reproduce it (e.g. deleting the first row in a table

Explorer table view

So I am able to do queries with tree view, but with table view it just shows null.  Also if I select a table with the mouse and press either tree or table view it's extremely laggy.   Trianglehead Json Error We may need more information to investigate this issue. It would help, of course

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.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 table

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 is part of the inverse

reading from table gives Unexpected exception

reading from table gives Unexpected exception [ObjectDB 2.6.3] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_131 (on Windows 10 10.0). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: null com

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

jakarta.persistence.InheritanceType.JOINED

Jakarta Persistence (JPA) Enum Constant in jakarta.persistence.InheritanceType JOINED A table ... and properties declared by the entity class. Each class in the hierarchy has its own table , but that table ... instance might be stored across multiple table rows. A join is used to retrieve the state of such entities. Since: Jakarta Persistence (JPA) 1.0

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.Inheritance

if no inheritance type is specified for an entity class hierarchy, the SINGLE_ TABLE mapping strategy ... for the entity inheritance hierarchy. Default: InheritanceType.SINGLE_ TABLE Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.ElementCollection

embeddable class . Must be specified if the collection is to be mapped by means of a collection table . The CollectionTable annotation specifies a mapping to a database table . Example: @Entity public class

jakarta.persistence.DiscriminatorValue

, should be specified for each concrete entity class in the hierarchy. Example: @Entity @ Table (name = "CUST") @Inheritance(strategy = SINGLE_ TABLE ) @DiscriminatorColumn(name = "DISC", discriminatorType

jakarta.persistence.UniqueConstraint

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table . Example: @Entity @ Table ( name = "EMPLOYEE", uniqueConstraints

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.PrimaryKeyJoinColumns

to map composite foreign keys. Example: ValuedCustomer subclass @Entity @ Table (name = "VCUST ... the generation of a foreign key constraint when table generation is in effect. If both this element

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 Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.PessimisticLockScope.NORMAL

. If a joined inheritance 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 ... to join tables or unidirectional one-to-many relationships for which the target entity contains

jakarta.persistence.PessimisticLockScope.EXTENDED

and relationships owned by the entity that are contained in join tables are locked if the property ... ). 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: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.uniqueConstraints

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator UniqueConstraint[] uniqueConstraints (Optional) Unique constraints that are to be placed on the table . These are only used if table generation is in effect. These constraints apply in addition to primary key constraints

jakarta.persistence.TableGenerator.indexes

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator Index[] indexes (Optional) Indexes for the table . These are only used if table generation is in effect. Note that it is not necessary to specify an index for a primary key, as the primary key index is created automatically. Default: {} Since: Jakarta Persistence (JPA) 2.1

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 ... specified at the table level. Default: false Since: Jakarta Persistence (JPA) 1.0

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 . Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinTable.name

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

jakarta.persistence.JoinTable.uniqueConstraints

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

jakarta.persistence.JoinTable.indexes

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

jakarta.persistence.JoinTable.check

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

jakarta.persistence.JoinTable.comment

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

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.options

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