ObjectDB Database Search

1-50 of 200 results

Schema Update

creates new , separate persistable classes with no instances. Therefore, you should back up your database ... ... ... A element has two roles: If you specify the optional new -name attribute, the package name changes from the original name (specified by the required name attribute) to the new name. All classes in

Database Schema Evolution

to the persistent fields of an entity class. New entities must be stored using the new class schema, and old entities, which were stored using the old class schema, must be converted to the new schema. Note ... to the new schema only when that entity is stored in the database again. An entity is converted

Database Management Settings

for each new database file. The resize attribute specifies the size by which to extend the database ... of concurrent threads that the database engine can serve simultaneously. When this maximum is reached, new ... thread competition. The element The element specifies how newly defined indexes are handled. When a new

Storing JPA Entities

Using Jakarta Persistence (JPA) You can store new entities in the database either explicitly by ... code stores an Employee entity class instance in the database: Employee employee = new Employee ... , and its initial state is New . An explicit call to persist associates the object with an owner EntityManager , em

Retrieving JPA Entities

the persistence context, JPA constructs a new object and populates it with data from the database or the Level 2 (L2) cache, if enabled. JPA then adds the new entity to the persistence context as a managed entity and returns it to the application. The construction of a new managed object during retrieval

Database Doctor

database file : Creates a new database file and copies all recoverable data from the corrupted file to the new file. Corrupted database files Database files can be damaged or corrupted ... , specify two command-line arguments: $ java -cp objectdb.jar com.objectdb.Doctor old.odb new .odb

Eclipse Public License - v 1.0

reserves the right to publish new versions (including revisions) of this Agreement from time to time ... the Agreement Steward to a suitable separate entity. Each new version of the Agreement ... subject to the version of the Agreement under which it was received. In addition, after a new version

SELECT clause (JPQL / Criteria API)

class is specified in a NEW expression, as follows: SELECT NEW example.CountryAndCapital(c.name, c ... NEW example.CountryAndCapital(c.name, c.capital.name) " + "FROM Country AS c"; TypedQuery query = em ... the NEW state , which means that they are not managed. Such entities lack the JPA functionality

Privacy Policy

;with news , special offers and general information about other goods, services and events ... Our Privacy Policy from time to time. We will notify You of any changes by posting the new Privacy ... about this Privacy Policy, You can contact us by visiting this page on our website: https://www.objectdb.com/post/ new ?op= new

Query Parameters in JPA

with different parameter values is more efficient than using a new query string for each execution ... strings, and each new query string requires its own compilation, which is inefficient. In contrast ... , compiled query program if one is available. This is true even if a new TypedQuery instance

JPA Persistable Types

, and date3 fields above might be initialized with new Date() , which contains both date and time. The time ... type that is already in use in an existing database. You can safely add new enum constants only at the end of the list, which gives them new , higher ordinal numbers. Alternatively, enum values

FROM clause (JPQL / Criteria API)

, LOWER, MAX, MEMBER, MIN, MOD, NEW , NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, POSITION, SELECT ... the from method is invoked, a new variable is added to the query. Criteria query joins JOIN ... of join adds a new JOIN variable to the query. Because From is the superinterface of both Root and Join

Auto Generated Values

a primary key for each new  entity. These generated values are unique at the database level ... value for each new entity during the commit operation. The difference is that IDENTITY manages ... ") @Id long id; } Unlike AUTO and IDENTITY , the SEQUENCE strategy generates a value as soon as a new

Literals in JPQL and Criteria Queries

and Time literals: Expression today = cb. literal ( new java.sql.Date()); Expression time = cb. literal ( new java.sql.Time()); Expression now = cb. literal ( new java.sql.Timestamp()); // Enum literal

JPA Connections and Transactions

of persistence unit properties as a second parameter: Map properties = new HashMap (); properties ... the database. If the database does not already exist, a new database file is created. When the application ... the EntityManagerFactory 's default credentials: Map properties = new HashMap (); properties.put("jakarta

jakarta.persistence.EntityManager

one of the following lifecycle states: A new entity has no persistent identity, and is not ... . Since: Jakarta Persistence (JPA) 1.0 EntityGraph createEntityGraph ( Class rootType ) Create a new ... . Parameters: name - the name of a query defined in metadata Returns: the new query instance. Throws

Tracking changes to new collections (in enhancement mode) after flush

Hello, We have an issue with a list as a value in a hashmap. Within one transaction a new key ... = {CascadeType.REFRESH, CascadeType.DETACH }) private HashMap mappingMap = new HashMap (1); (edited ... ();         ListInMap entity = new ListInMap();      

Step 2: Entity Class and Persistence Unit

the [ New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting  New Class . Enter  guest as the package name - use  exactly that case ... class name. Click  Finish to create the new class. A new class that should represent Guest

Step 2: Entity Class and Persistence Unit

the project node (in the [Package Explorer] window), select  New Source Folder , enter src/main/java as Folder Name and click Finish . Open the [ New Java Class] dialog box, e.g. by right clicking the new source directory node (in the [Package Explorer] window) and selecting 

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [ New Java ... ) and selecting  New Class . The package name should be  guest . Enter  GuestController as ... the new Spring Controller class. Now replace the content of the new source file with the following code

Step 4: Add a Controller Class

In this step we will add a Spring Controller to manage guestbook web requests: Open the [ New Java ... New Java Class ... Enter GuestController as the class name - use exactly that case sensitive class name. The Package should be guest. Click Finish to create the new Spring Controller class. Now

Step 2: Entity Class and Persistence Unit

the [ New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Entity Class ... (or New Other... Persistence Entity Class and clicking Next ). Enter ... - use exactly that case sensitive package name. Click Next to create the new entity class. In

Step 2: Entity Class and Persistence Unit

the [ New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting  New Entity Class ... (or  New Other... Persistence Entity Class and clicking ... as the package name - use exactly that case sensitive package name. Click Next to create the new

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [ New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New Servlet ... package name should be guest. Click Finish to create the new servlet class. Now replace the content

Step 4: Add a Servlet Class

  New Other... Web Servlet and clicking  Next . The Java package name should be guest ... to create the new servlet class. Now replace the content of the new source file with the following code ... a new guest (if any): String name = request.getParameter("name"); if (name != null) { em

Step 2: Define a JPA Entity Class

the [ New Java Class] dialog box, e.g. by right clicking the project node (in the [Package Explorer] window) and selecting New Class . Enter guest as the package name - use exactly that case sensitive package ... to create the new class. The new class should represent Guest objects in the database. Use copy

[ODB1] Chapter 9 - ObjectDB Explorer

to browse databases, execute JDOQL queries, create new databases and edit the content of existing ... a new viewer window, first select a target element: Select a persistent class in the "Class" tabbed ... to explore it in a new viewer window. When the target element is selected, you can open a new viewer

Step 3: Define an EJB Session Bean

that we will define in this step: Open the [ New Session Bean] dialog box by right clicking the guest package node (in the [Projects] window), selecting New Other... Java EE (or Enterprise JavaBeans) Session ... name. The Java package name should be guest. Click Finish to create the new session bean (EJB

Step 3: Define a Spring DAO Component

) that we will define in this step as a Spring MVC component: Open the [ New Java Class] dialog box by right clicking the guest package node (in the [Projects] window under Source Packages) and selecting New ... name. The Package should be guest. Click Finish to create the new DAO Spring component class. Now

Step 3: Define a Spring DAO Component

) that we will define in this step as a Spring MVC component: Open the [ New Java Class] dialog box by right clicking the guest package node (in the [Package Explorer] window) and selecting  New Class ... that case sensitive class name. Click  Finish to create the new DAO Spring component class. Now

Step 2: Define a JPA Entity Class

the [ New Java Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New Java Class ... Enter Guest as the class name - use exactly that case sensitive class name ... to create the new class. Use copy and paste to replace the new source file content with the following

Step 2: Define a JPA Entity Class

the [ New Java Class] dialog box, e.g. by right clicking the tutorial package node (in the [Projects] window) and selecting New Java Class ... Enter Point as the class name - use exactly that case sensitive class name. The package name should be tutorial . Click Finish to create the new class. Use copy

Step 1: Create a Maven Web Project

We start by creating a new Maven-WTP dynamic web project in Eclipse: Open the [ New Project] dialog box, e.g. by using  File New Project... Select  Maven Maven Project and click  ... of the new created project is contained in a  pom.xml file that was created in the project main

Step 1: Create a Java EE 6 Web Project

We start by creating a new Java EE dynamic web project in Eclipse: Open the [ New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button

[ODB1] Chapter 6 - Persistent Objects

When a new object is constructed by the new operator, it always starts as a transient object, regardless ... the following code: pm.currentTransaction().begin(); Person person = new Person("George", "Bush"); Address address = new Address("White House"); person.setAddress(address); pm.makePersistent(person); pm

[ODB1] Chapter 2 - A Quick Tour

- construct and store a new list: 24 list = new ArrayList(); 25 Utilities.bind(pm, list, "Hello World"); 26 } 27 28 // Add a new string to the persistent list: 29 list.add("Hello World " + list.size()); 30 31 ... file does not exist in that path, a new database file is created automatically. To enable updating

[ODB1] Chapter 3 - Persistent Classes

support for additional types is to define new persistent classes. For example, the class java.awt.Image is not supported by JDO. You can store images in byte[] fields or you can define a new persistent ... /*.class [ObjectDB Enhancer] 2 new persistence capable classes have been enhanced. [ObjectDB Enhancer] 1

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [ New JSP File ... ) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class ... Finish to create the new JSP file. Now replace the content of the new jsp file with the following

Step 3: Add a Context Listener Class

the EntityManagerFactory . To register a ServletContextListener : Open the [ New Listener] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting New ... the Finish button. Click Finish to create the new listener class. Now replace the content of the new

Step 1: Create a Java Project

We start by creating a new NetBeans Project: Open the [ New Project] dialog box, e.g. by using File New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ... of the ObjectDB installation directory and click Open . Now you should have a new NetBeans project

Step 1: Create a Maven Web Project

We start by creating a new Maven web project in NetBeans: Open the [ New Project] dialog box, e.g. by using File New Project... Select Maven Maven Web Application and click Next . Choose a Project ... the project. The configuration of the new created project is contained in a pom.xml file that was created

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [ New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [ New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [ New JSP File ...   New Other... Web JSP File and clicking  Next . Enter  guest as the jsp file name - use  exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [ New JSP File ... ), selecting  New Other... Web JSP File and clicking Next . The parent folder should be WEB-INF ...   exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 2: Define a JPA Entity Class

on the project in the [Package Explorer] window and select New Class . Enter tutorial as the package ... the new class. Copy and paste the following code into the newly created Point class: package tutorial ... public String toString() { return String.format("(%d, %d)", this.x, this.y); } } The new class

Step 6: Set the Spring XML

of the  web.xml file with the following new content: spring org.springframework.web.servlet ... that file: Right click the WEB-INF node in the [Package Explorer] window, select  New Other... XML ... ; copy and paste to replace the content of the  spring-servlet.xml file with the following new

Step 6: Set the Spring XML

). Use copy and paste to replace the default content of the web.xml file with the following new content ... , select New Other... and then choose the XML category, XML Document and click Next . Enter spring ... with the following new content: The settings above guides Spring to support annotations (for components

Step 1: Create a Java EE Web Project

We start by creating a new Java EE 6 Web Application project in NetBeans: Open the [ New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and click Next . Select GlassFish Server 3 (or above) 

[ODB1] Chapter 8 - ObjectDB Server

is listening for new connections is specified in the configuration file (as explained in section 8.2 ... . Therefore, you may need a new command window for the stop and restart commands. The –conf and –port commands ... that you do not edit this file directly. Rather, you should copy it to the bin subdirectory and then edit the new