About code weaving

31-40 of 200Refresh
Manual
3

CRUD Database Operations with JPA [2011-02-11]

code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i ... ().commit(); In the above code, p must be a managed entity object of the EntityManager em. The entity ... to the entity object and applying them to the database when the transaction is committed. The following code
Manual
3

Online Backup [2011-02-25]

, backing up a test.odb database file using the code above could generate a backup whose full path ... (); The code above, for instance, could create a backup at c:\backup\201012312359\test.odb regardless ... client-server mode the code above could create the backup file on the server side at backup
Manual
3

CRUD Database Operations with JPA

code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i ... ().commit(); In the above code, p must be a managed entity object of the EntityManager em. The entity ... to the entity object and applying them to the database when the transaction is committed. The following code
Manual
3

JPA Named Queries

named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the use of query parameters rather than embedding literals ... interface. For example: em.getMetamodel().managedType(MyEntity.class); Following the above code
Manual
3

FROM clause (JPQL / Criteria API)

the following code: CriteriaQuery q = cb.createQuery(Country.class); Root c1 = q.from ... .capital p can be built as a criteria query using the following code: CriteriaQuery q ... query using the following code: CriteriaQuery q = cb.createQuery(Country.class); Root
Manual
3

Online Backup [2019-08-09]

, backing up a test.odb database file using the code above could generate a backup whose full path ... (); The code above, for instance, could create a backup at c:\backup\201012312359\test.odb regardless ... client-server mode the code above could create the backup file on the server side at backup
Manual
3

Online Backup [2019-08-10]

 database file using the code above could generate a backup whose full path is c:\objectdb\backup ... ("target", new java.io.File("c:\\backup"));     backupQuery.getSingleResult(); The code ... the code above could create the backup file on the server side at backup/201012312359/test.odb
Manual
3

Online Backup

 database file using the code above could generate a backup whose full path is c:\objectdb\backup ... ("target", new java.io.File("c:\\backup"));     backupQuery.getSingleResult(); The code ... the code above could create the backup file on the server side at backup/201912312359/test.odb
FAQ
2

What are the main benefits of using ObjectDB?

. The ability to store ordinary objects in the database directly can simplify the code significantly. Less (and more simple) code to write, debug and test, as well as a much easier learning curve leads
Manual
2

JPA Query API

with an EntityManager (represented by em in the following code snippets), which serves as a factory ... > q2 = em.createQuery("SELECT c FROM Country c", Country.class); In the above code