Internal Website Search

51-100 of 200 results

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

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

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

javax.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 ... String name; protected Address home; ... @ElementCollection // use default table (PERSON_NICKNAMES

javax.persistence.MapKeyColumn

"" (Optional) 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 ... using a join table , the map key column is in a join table . If the map key is for a OneToMany entity

javax.persistence.SecondaryTables

secondary tables for an entity. Example 1: Multiple secondary tables assuming primary key columns are named the same in all tables . @Entity @ Table (name="EMPLOYEE") @SecondaryTables({ @SecondaryTable ... : Multiple secondary tables with differently named primary key columns. @Entity @ Table (name="EMPLOYEE

javax.persistence.PessimisticLockScope

, element collections and relationships owned by the entity that are contained in join tables ... locks only the rows in the join table or collection table for that relationship or collection ... if the entity is otherwise mapped to a secondary table , this entails locking the row(s

javax.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 ... constraint for the columns corresponding to the joinColumns element when table generation is in effect

javax.persistence.Column

() { return description; } Example 2: @Column(name="DESC", columnDefinition="CLOB NOT NULL", table ="EMP ... (exact numeric) column. (Applies only if a decimal column is used.) Since: JPA 1.0 String table default "" (Optional) The name of the table that contains the column. If absent the column is assumed

javax.persistence.JoinColumn.name

) The name of the foreign key column. The table in which it is found depends upon the context. If the join ... 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 entity

javax.persistence.MappedSuperclass

has no separate table defined for it. A class designated with the MappedSuperclass annotation ... since no table exists for the mapped superclass itself. When applied to the subclasses the inherited mappings will apply in the context of the subclass tables . Mapping information may be overridden in

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

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

javax.persistence.InheritanceType

which fields that are specific to a subclass are mapped to a separate table than the fields ... SINGLE_ TABLE A single table per class hierarchy. Since: JPA 1.0 TABLE _PER_CLASS A table per concrete

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

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

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

javax.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 ... does not contain the foreign key (such as relationships that are mapped to join tables or

javax.persistence.PessimisticLockScope.EXTENDED

that are contained in join tables will be locked if the javax.persistence.lock.scope property is specified ... element collection generally locks only the rows in the join table or collection table

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

javax.persistence.Version

to the primary table for the entity class; applications that map the Version property to a table other than the primary table will not be portable. The following types are supported for version properties: int

javax.persistence.DiscriminatorColumn

the discriminator column for the SINGLE_ TABLE and JOINED Inheritance mapping strategies. The strategy ... " and the discriminator type to DiscriminatorType.STRING . Example: @Entity @ Table (name="CUST") @Inheritance(strategy=SINGLE_ TABLE ) @DiscriminatorColumn(name="DISC", discriminatorType=STRING, length

javax.persistence.ManyToMany

, the owning side and the non-owning, or inverse, side. The join table is specified on the owning ... annotation to specify the relationship field or property of the owning side. The join table

javax.persistence.JoinTable.uniqueConstraints

JPA Annotation Attribute in javax.persistence.JoinTable UniqueConstraint [] uniqueConstraints default {} (Optional) Unique constraints that are 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

javax.jdo.annotations.Join

table . Since: JDO 2.1 Column [] columns default {} Detail definition of the join column(s ... constraint. Since: JDO 2.1 String table default "" Table to join to (used when joining to secondary tables ). Since: JDO 2.1 String unique default "" Whether the join column is unique. Since: JDO 2.1

javax.jdo.annotations.Value

serialized (into a single column of a join table ). Since: JDO 2.1 String table default "" Name of the table for the value. Since: JDO 2.1 Class[] types default {} Types of the values

javax.jdo.annotations.Unique

table default "" Table for the unique constraint. This is needed iff annotating a type where this unique constraint is not for the primary table for the persistent class or interface. Since: JDO 2.1

javax.jdo.annotations.Key

column of a join table ). Since: JDO 2.1 String table default "" Name of the table for the key

javax.jdo.annotations.Index

of the index Since: JDO 2.1 String table default "" Table for the index. This is needed iff annotating a type where the index is not defined on the primary table for the type. Since: JDO 2.1 String

javax.jdo.annotations.InheritanceStrategy

JDO Enum InheritanceStrategy java.lang.Object ∟  java.lang.Enum ∟  javax.jdo.annotations.InheritanceStrategy Enumeration of the inheritance strategy values. Since: JDO 2.1 Enum Constants NEW_ TABLE Since: JDO 2.1 SUBCLASS_ TABLE Since: JDO 2.1 SUPERCLASS_ TABLE Since: JDO 2.1 UNSPECIFIED

javax.jdo.annotations.ForeignKey

default "" Name of the foreign key. Since: JDO 2.1 String table default "" Table for the foreign key. This is needed iff annotating a type where the foreign key is not defined on the primary table

javax.jdo.annotations.Element

String serialized default "" Whether the element is to be stored serialized (into a join table ) Since: JDO 2.1 String table default "" Name of the table for the element. Since: JDO 2.1 Class[] types

javax.jdo.annotations.PersistenceCapable

for persisting this class or interface. Since: JDO 2.1 String table default "" Table to use for persisting this class or interface. Since: JDO 2.1