About reflection

issue

No Entity Class API

Both JPA and JDO are based on accessing and managing data in the database using persistable classes (mainly entity classes in JPA or persistence capable classes in JDO). Sometimes, it might be useful to access data without classes. For example, a tool that finds and replaces strings in the database should be generic and should not be bound to specific entity classes and persistent fields. An API for accessing (and maybe also modifying) data in the database without classes can be useful in some applications.... missing from the classpath.  Use Java reflection API with information from the Metamodel API to access fields of ...

 
manual

Date and Time in JPQL and Criteria Queries

Shows how date and time can be used in JPQL queries. Date and time expressions may appear in JPQL queries: as date and time literals - e.g. {d '2011-12-31'} , {t '23:59:59'} . as parameters - when date and time values are assigned as arguments. ...

 
forum_thread

OutofMemory error with Object DB 2.0

Hi, I am getting the below OutOfMemoryError after I have migrated from objectdb 1.0 to 2.0 The application works with 256MB heap size with objectdb 1.0  But on 2.0 even with max heap size of 1024MB, I get this error. The application reads xml file of around 1GB and creates a new odb file and inserts 200 records at a time. ... > <enhancement agent = "false" reflection = "warning" /> <cache ref = "weak" ...

 
forum_thread

Finance data from SQL Server into ObjectDB daily

Hello -   I think ObjectDB might be just the solution for our current project but I would like some feedback from the community to see if I'm thinking about it right.   We have a finance data mart that is appended to daily via an SSIS package. I would like to pull the data from SQL, add it to a bean and store it in the ObjectDB. This would all happen in an automated fashion. Does this make sense? Is there a way to map the structure of the table directly into ObjectDB from SQL Server?   ... the javaagent for objectdb enabled (as eclipselink uses reflection to access your entity fields). Code is straight forward, and ...

 
manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO. Persistent Classes are user defined classes whose instances can be stored in a database using JDO. Instances of these classes that represent objects in the database are called persistent objects or persistent instances . Objects that do not repre ...

 
forum_thread

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in a distributed environment. Moreover, not doing it does sometimes trigger ugly errors, which mean application downtime. It might be very useful to have an additional feature (that could be enabled/disabled in objectdb.config) that each time ObjectDB detects a schema change that requires restart, it should automatically restart itself. This way we save a lot of headaches from our dev. ops. Currently we have to manually do: ... field field xxx.xxx.entity.p2.ExerciseSetResult.rest using reflection at com.objectdb.o.BYR.s(BYR.java:113) at ...

 
forum_thread

Retrieval by Access bug?

Dear Sirs, I have an object A, that has a OneToMany FetchType.EAGER List of objects B, that has a field with a reference to an object C. I have this code: ClassA objectA = em.find(ClassA.class, 1); for (ClassB objectB : objectA.getListB()) {     ClassC objectC = objectB.getObjectC(); } em is an open Entity Manager with a running transaction. ... enhancement is not supported. In addition, if you use reflection mode (i.e. no enhancement) you should try enhancing your classes, ...

 
forum_thread

Spring Transactions (@Transactional) within ObjectDB

Hi, We are using OBD with Spring and transactions are managed by Spring. Our spring service interfaces take list of objects and persist them and the interface service is marked as @Transactional. We iterate through the list apply business validations and persist them one by one in a loop. ( Using Spring Data) We have noticed that in a loop 1st object is persisted and then we if lookup the same object we don't get it back on lookup. #1 2013-08-26 07:54 Hi, We are using OBD with Spring and transactions are managed by Spring. Our spring service interfaces ta ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ObjectDB Explorer is a visual tool for managing ObjectDB databases. You can use the Explorer to browse databases, execute JDOQL queries, create new databases and edit the content of existing databases. This chapter contains the following s ...

 
forum_thread

significant performance decrease

we are using objected in embedded mode (on OS X and WINDOWS). The database increased now to around 400000 entities of one class (database file size around 1.5 GByte). The response time of standard queries increased with this database size to an unacceptable rate (several seconds compared to around 30% when the number of entities was just half of the current). We tried to optimize the cache settings, current objectdb.conf is: <!-- ObjectDB Configuration --> <objectdb> ... > <enhancement agent = "true" reflection = "warning" /> <cache ref = "weak" ...