ObjectDB Database Search

51-100 of 151 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

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

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

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

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

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

JPQL query to get entities that does not have a child entity in their child entities

I have 2 tables as shown below. Job Table ID JobId Name StartTime    FinishTime ... :00  2105:12:10 14:00:00 And Status Table ID    Status     ... ;   004 From these 2 tables I have to query for Jobs having states FINISHED, CANCELED, FAILED

General Performance Issues Illustrated with a Specific Method

; import javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence. Table ; import javax.persistence.Temporal; import lk.gov.health.phsp.pojcs.Identifiable; @Entity @ Table ... . Table ; import javax.persistence.Temporal; import javax.persistence.Transient; import lk.gov.health

Dirty checking

a single html table , showing a list of users with these columns: Company name, User name So, first the client loads the user table . The actual users rows may depend on whether the client is an administrator, or a group leader, etc. Now that table is a projection/lens/reactive-query over a subset

On ensuring ID available after persist

This is a good point. Notice that the most portable generation strategy is TABLE , because: AUTO - each JPA ... it may be slower than just using SEQUENCE or TABLE . support Support The reason that ObjectDB doesn't ... the SEQUENCE or  TABLE  strategies, which support allocating a group of IDs in advance in

Using ObjectDB with JDBC (in similar way with JPA 2)

Using JDBC, I can use a String to create the schema of a table : String sql = "CREATE TABLE ... to similarly use a string to create a table BUT with ObjectDB as my database. Can I pair JDBC ... class. ObjectDB is not a relational database, so you don't have to create tables . support Support

Removing entity class

ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count into 10 entities limit. My question is: Is it possible to remove entity/ table completely from

mappedSuperClass and subClass Duplicates

When I subclass a mappedSuperClass, a table for both appears in the Explorer. Am I correct ... instances of all its subclasses in one view window. No tables are created. support Support However, it appears that the super classes in the explorer count toward the ten (10) table limit for the free

A few questions on object database design

. He has stability issues with the ObjectDB if we are accessing the same table all the time. I know that ObjectDB outperforms a lot of other conventional table -oriented databases, but I'm wondering ... entities, then it seems like we are back to the table -oriented databases' design principles

Persist error @ManyToMany how to define correct entities relationships

the 1000 products and keep Catgory table at 20 entities, not 1000 or 2000.   lo Hoel ... entity is created, the table is empty, however categories are well present within Product (as ... the table on 2, and it is not filled correctly, the other category is ignored.   package

Complex Schema Upgrade not working

in the previous Contact and Customer tables to be empty as well as the new Address class' table

Populating entity id before transaction commit

to finding ID of entity before commit? lwalkowski Lukasz Walkowski You can use a SEQUENCE (or TABLE ... to sequence or table or I will try to force setting id. Thanks. lwalkowski Lukasz Walkowski

How to define database structure and insert some initial objects from scratch

Hi from Spain! We're evaluating ObjectDB and we have some questions: - How can we create the initial database structure of our application? We know objectdb is all about objects and probably doesn't need initial structure like tables , but how can we populate some " tables " with initial data from

em.flush(); em.clear(); loosing data and not persisting managed objects

.persistence.Lob; import javax.persistence. Table ; @Entity @ Table (name = "TestEntity", schema = "mySchema

LazyInitialization / join fetch

: When I click the Items table hibernate does all these other queries without me asking . I ... click the Items table hibernate does all these other queries without me asking . `` ` Hibernate

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

to understand with careful output logging to the Glassfish logs, and also with a diagnostic table ... (null) There is also a copy of the indexTest.xhtml output with a table of the query results attached ... between a Guest object and simple relational database table . I don't mind being wrong if I learn

After using the enhancer, Lazy loaded collections are no longer loading. They are set as null

(strategy= GenerationType. TABLE ) protected Long id; @Override public Long getId() { return id ... { @Id @Column(name = "project_id") @GeneratedValue(strategy= GenerationType. TABLE ) protected Long id