ObjectDB Database Search

51-100 of 182 results

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

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

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

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

Extended mapping-definitions

persisted depending on its java-class. But in this case all the instances would be saved in the same ' table ... it to the ' table ' MetaClass, but read the value val = obj.getName() and persist it to the ' table ... of one class in different ' tables '. Please clarify: Is it only for improving performance, or

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

Explorer in 2.3

. Then allow import of that file into another database. 2. Lazy loading of data, especially in table view - With large amounts of data, it takes a long time for the Swing Table or Tree views to display. Any ... the Results either as a table or tree. 4. It would be terrific if the Database tab had lots

Database Inconsistency or corruption

classes:   @javax.persistence.Entity @javax.persistence. Table (name = "ObjectValues", schema = "dex ... = javax.persistence.GenerationType. TABLE , generator = "objectValueGen")   @javax.persistence.TableGenerator(name = "objectValueGen", table = "IdValues", schema = "dex_01", pkColumnName = "idName

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

Updating Entities

.observableArrayList(Query.employeeTable()); table .setItems(employees); id.setCellValueFactory(itemData ... table ... public class PaygradeModify { @FXML private TextField paygrade; private PaygradesOverview ... ARE made if the EmployeeOverview table has NOT been visibly loaded during Runtime once. As soon as the table

jakarta.persistence.Id

for the primary key of the entity is assumed to be the primary key of the primary table . If no Column

jakarta.persistence.Index

key has a unique constraint with an index created automatically. See Also: Table SecondaryTable

jakarta.persistence.IdClass

equality consistently with equality of the mapped primary key of the database table . The primary key fields

jakarta.persistence.GeneratedValue

(strategy = TABLE , generator = "CUST_GEN") @Column(name = "CUST_ID") Long id; See Also: GenerationType Id

jakarta.persistence.JoinColumns

the generation of a foreign key constraint when table generation is in effect. If both this element

jakarta.persistence.ManyToOne

annotation. Alternatively, an optional OneToOne association is sometimes mapped to a join table

jakarta.persistence.MapKeyJoinColumns

foreignKey (Optional) Used to specify or control the generation of a foreign key constraint when table

jakarta.persistence.EmbeddedId

with equality of the mapped primary key of the database table . The AttributeOverride annotation may be used

jakarta.persistence.Version

superclasses. The Version field or property should be mapped to the primary table of the entity

Double persist of Entity field with Cascade.ALL

table , however with side effect on the Chapter table . For every new Chapter added to the Book, there are two Chapter records (usually added in sequential id) on the Chapter table when viewed in ... to the Book entity ON THE SERVER SIDE, then the Chapter table is OK (no duplicate records). I

Missing Data on Retrieval (0, null values)

Table contains all necessary Data. Most of the others  contains all  Object-Rows', but most Values of the Columns are missing. With a  em.clear() inside the Loop, all tables are exported ... tableName: tables ) {   List resultList = em.createQuery("SELECT q  FROM "+tableName+" "+n

@MappedSuperclass and @Transient not working as I expected

, and one of its fields is annotated @Transient.  I expected that when I persist a subclass, no table would be created for the superclass, and the transient field would not appear in any table . The actual result is that there is a table for the superclass.  When I try to examine it in ObjectDB Explorer

@Unique added afterward is not taken into account

were already added to the table ). As a consequence the unique constraint is not taken into account ... added to the table . It is a problem as we rely on the commit error to know when adding or updating object in table . This error was previously encountered in similar conditions with another table

Beginners questions

) between two tables : Table "EBVerlag": @Entity(name="VERLAG") public class EBVerlag extends Pojo ... =CascadeType.ALL, mappedBy="VERLAG_ID") private List users; Table "EBUser": @Entity(name="USER ... the connection between these two tables correctly or not. 3.2. Both POJO-s extend my own class "Pojo.class

Finance data from SQL Server into ObjectDB daily

this make sense? Is there a way to map the structure of the table directly into ObjectDB from SQL Server?   Thanks. ExpII chris You cannot map RDBMS tables directly to ObjectDB but you can use other JPA implementations to retrieve data from RDBMS tables and then use the same JPA entity classes

jakarta.persistence.TableGenerator.catalog

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String catalog (Optional) The catalog of the table . Defaults to the default catalog. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String schema (Optional) The schema of the table . Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.pkColumnName

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String pkColumnName (Optional) Name of the primary key column in the table . Defaults to a provider-chosen name. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator.options

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String options (Optional) A SQL fragment appended to the generated DDL statement which creates this table . Default: "" Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Inheritance.strategy

Jakarta Persistence (JPA) Method in jakarta.persistence.Inheritance InheritanceType strategy The inheritance mapping strategy for the entity inheritance hierarchy. Default: InheritanceType.SINGLE_ TABLE Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.GenerationType.AUTO

of type Long , Integer , long , or int , the provider selects between GenerationType. TABLE

jakarta.persistence.Persistence.generateSchema(String,Map)

Jakarta Persistence (JPA) Method in jakarta.persistence.Persistence void generateSchema (    String persistenceUnitName ,    Map map ) Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called when schema generation