Home » Search

About code weaving

21-30 of 200Refresh
Result
4

Apache License, Version 2.0, January 2004

to software source code, documentation source, and configuration files. "Object" form shall mean any form ... to compiled object code, generated documentation, and conversions to other media types. "Work" shall ... , including but not limited to communication on electronic mailing lists, source code control systems
Manual
4

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
4

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
4

Online Backup

, 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
4

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 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
Tutorial
3

Step 3: Add a Context Listener Class

of the new source file with the following code: package guest; import javax.persistence.*; import ... )e.getServletContext().getAttribute("emf"); emf.close(); } } The code
Tutorial
3

Step 3: Add a Context Listener Class

the new listener class. Now replace the content of the new source file with the following code: package ... "); emf.close(); } } The code above: Invokes the Enhancer to enhance the entity class
Tutorial
3

Step 3: Add a Main Class

In this step we will add a main class to the project with code that will store Point objects in the database and then retrieve them from the database: Open the [New Java Class] dialog box by right ... . A detailed explanation of the code is provided in the Quick Tour chapter of the ObjectDB Manual
Tutorial
3

Step 3: Add a Main Class

In this step we will add code to the Main class (that was generated with the project) in order to store Point objects in the database and then retrieve them from the database. Use copy and paste ... the database. Finally it closes the database. A detailed explanation of the code is provided in the Quick