About SET


removed objects stay with null field values in the reference

We have a class with a one to many relationship declared like this (1 or more objects of the same class are linked into the relationship, no circular referencing): ... = FetchType . LAZY )   public Set<ObjectNode> workflow = new HashSet<ObjectNode> ( ... the object stays in the relationship with all fields set to null except the primary key. The same behavior is when we  ...


Retrieving JPA Entity Objects

Explains how to use JPA to retrieve entity objects from the database.... not its content, such as when a reference to it has to be set from another entity object. Retrieval by Eager Fetch ... Employee instance. In a hollow object the primary key is set but other persistent fields are uninitialized until the object fields are ...


[ODB1] Chapter 8 - ObjectDB Server

An ObjectDB server can manage one or more databases. Databases that are managed by a server can be accessed by multiple processes simultaneously. In addition, the server supports accessing these databases from remote machines by TCP/IP. More details about client server mode vs. embedded database mode are discussed in Section 1.2.... be listening for new connections. Usually, it should be set to 6136, which is the default port of ObjectDB. If a port other than the ... note: appropriate file system permissions have to be set on that directory to enable operations by the server process. The location ...


How force always recreate database on redeployment.

Is there some easy way to force recreation/deletion of the current database on deployment of a web application (to Glassfish). My web application uses a @Singleton @Startup bean to create and persist a test model each run. I keep getting models on top of each other on rerunning my web application. Currently, to avoid multiple models in the database, I have to undeploy from Glassfish, stop the server, delete the database file, re-start the objectdb server, re-run the web app, which is tedious. ... property, or config file property I can use to set to force ObjectDB to always delete or empty the database file on startup ? ... but by then it is constructed and I can't see how to set the drop parameter before the database file is opened. Setting parameters ...



Interface implemented by the container and used by the persistence provider when creating an javax.persistence.EntityManagerFactory.(Interface of JPA)


new objects not available in mappedBy associations

Given a mappedBy association: e.g: @OneToMany(mappedBy="department") public List <Employee> employees;   creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object, even if it is persisted, and even if the transaction is committed??  ... the update and before commit, if your EntityManager is set to use FlushModeType.AUTO ). ObjectDB Support ... created Employee object if that object's department is set? I'm wondering if I'm doing something wrong, but I'm definitely seeing ...



The JDO Transaction interface provides for initiation and completion of transactions under user control.(Interface of JDO)


LIMIT or TOP functions

Is there LIMIT or TOP functions in object db? If so can you provide some examples? ... 11:23 You can set query result range by using the setFirstResult ... TypedQuery's method Set the position of the first result to retrieve. See JavaDoc Reference ... setMaxResults(maxResult) TypedQuery's method Set the maximum number of results to retrieve. See JavaDoc Reference Page... ...


NullpointerException when execute a commit

Hello, following exception occurs when using objectdb: ... ...     private Set<ContractData> usedAsAssumptions;     public Set<ContractData> getUsedAsAssumptions() { ...     public void setUsedAsAssumptions(Set<ContractData> usedAsAssumptions) { ...


Enhanced classes problem

Hell, we have problem with the OEM enhancement licencing. When we used runtime licencing using machine activation code, everything works fine. But when we enhanced our classes with OEM licence, following errors occurs: ... by: com.objectdb.o._PersistenceException: Failed to set reference value of field field ... 1 more Caused by: com.objectdb.o.UserException: Failed to set reference value of field field ... 09:25:26.156 | Failed to set reference value of field field ... | Caused by: com.objectdb.o.UserException: Failed to set reference value of field field ...