Home » Search

About Entity

181-190 of 200Refresh
Issue
9

Post-compile enhancement sometimes causes error in generic loops: incompatible types found: java.lang.Object: required: Entity

over an @entity type I get a generics error. The generic for loop is:  for (Steel s ... required: com.example.entity.Steel for (Steel s: this.steelMaterials.getL_Steel().getEls
Forum
9

Retrieve data of all entity classes in a single query

I have in an objectdb file 10 Entity Classes with some data in each (Athlete, Trainer, Stadium etc) This is the code I use to retrieve all Managed Types and data for the Athlete class Metamodel ... all the entity objects using a query on Object:     SELECT o FROM Object o Of course
Forum
9

Support of modifying an ObjectDB Entity class (Schema Change)

If you modify an ObjectDB Entity class will it be supported by a database set up using the old class? I already have an idea to iterate through a database, getting each record and then creating ... if ObjectDB can already handle changes to Entity classes. Please see my StackOverflow question
Forum
9

Update entity without first opening a transaction

Hi everyone, I want to update an entity in my program without having to open a transaction, do the modifications and commit the transaction. I want to have a managed entity that is in sync with my database. So when I got a Person class and I do person.setName("John"), the name in my database
Forum
9

Adding indexes on existing entities.

Is it safe to add indexes on an existing entity class? Thanks. Safe, but to enable the new index you will have to rebuild it, currently using the Doctor. Before running the Doctor make sure that the index is registered in the database by opening the database when it has access to the new index
Forum
9

Attempt to remove a detached entity object (error 613)

Hello, that's a strange error for me ... I have a detached object in my Java code and i just wanted to merge it ... Unfortunatly, i get this error : Failed to commit transaction: Attempt to remove a detached entity object (error 613)      at com.objectdb.jpa.EMImpl.commit(EMImpl.java:290) We see in
Forum
9

How do I Remove an entity from the Database ?

Hi I no longer want to use an Entity .. (in SQL terms the whole Table ) ... How do I delete it ?   Thanks Paul Newman Currently classes cannot be removed but this only affects the list of classes in the Explorer. Removing of classes will be supported in the future. pnewman
Forum
9

How to define Default Entity Listeners without persistence.xml and orm.xml

I am using JPA programaticaly..ie without xml file, and i would like to define Default Entity Listeners. How to do ? Here my init code: Properties config = new Properties(); config.put("javax.persistence.provider", "com.objectdb.jpa.Provider"); config.put("javax.persistence.jdbc.url", "objectdb
Forum
9

Internal objectdb error when open a database or open an entity manager

we get following exception when we open a database or open an entity manager   Exception in thread "ODB IndexActivation" [ObjectDB 2.6.6_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0_51 (on Windows 7 6.1). Please report this error on http://www
Forum
9

Is it possible get the All PrimKeys for a given entity class in the DB?

. Anyway, adding @Id field doesn't duplicate storage. The field is initialized each time the entity object