ObjectDB Database Search

1-50 of 178 results

Schema Update

The configuration element supports renaming packages , classes, and fields in ObjectDB databases ... when you rename or move persistable classes to another package . If you run the application with persistable ... ... ... A element has two roles: If you specify the optional new-name attribute, the package name changes from

Package name for persisted entities

Hi, I have a question about package name and searching for entities. As for now we were using ... specify full name with package in persistence.xml and set "exclude-unlisted-classes" for true, ODB ... - package -for-entities' in persistence.xml so I can set where ODB should look first for entity

package not found running ObjectDB under OSGi

] Package datamodel.core.base is not found by the enhancer (error 108) The Enhancer was run in ... to the NamedCoreObj class. Also package  datamodel.core.base was set in my primary plugin as ... doesn't provide an API for locating all the classes in a package . ObjectDB can still locate classes

DB Explorer cannot be opened after schema package renaming of entity types

The DB Explorer cannot be opened after schema package renaming of entity types ... the database the entity types and deprecated entity types can be part of the identical package . The schema update tries to rename the package name for entity types and deprecated entity types

Primary key generation problem after changing entity package

Hi, I changed package name for some of my entities in database. I added info in ... setting. kborkowski Karol Borkowski Regarding #1 - I tried the following test: package com.objectdb.test ... everything works fine. Unfortunately, in our more complex schema sequences are lost after entities package

Schema update: package, class and field

Hello, how can it be specified in the schema, that an entity is moved to another package ? Package Structure (version 1) com |- btc |- impl |- Class1.java |- internal |- Class2.java |- Class3.java Now I want to move Class2   from com.btc.internal to com.btc.impl com |- btc |- impl |- Class1

package.jdo validation error (Connection timed out)

.objectdb.o._JdoUserException: Failed to validate xml file \RTDLogger.jar# package .jdo: Connection ... .getPersistenceManager(); Can you please let me know if i need to change something in my package .jdo file

UserException: Package com.example.model is not found by the enhancer

My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of the project to a remote location and run it using java -jar example.jar then I get the exception: com.objectdb.o.UserException: Package com.example.model is not found by

How to package orm.xml when using EJB in WAR?

How to package orm.xml when using EJB in WAR?

JPA Persistable Types

, package , or private ), and it can be either concrete or abstract. Entity class names Entity classes ... of the entity class (that is, the short class name without the package name). A different entity name ... packages share the same class name, explicitly setting the entity name is required to avoid conflicts

Literals in JPQL and Criteria Queries

, given the following enum definition: package example.ui; enum Color { RED, GREEN, BLUE ... (that is, without the package name), but you can change it by specifying a different name in the name element

Database Schema Evolution

other conversion that is a valid casting operation in Java. Renaming ( package , class, and Field ... their names. When a schema upgrade also includes renaming fields, classes, or packages , you must specify

JPA Lifecycle Events

and take no arguments. They can have any name and any access level ( public , protected , package , or

SELECT clause (JPQL / Criteria API)

must have a compatible constructor that matches the SELECT result expressions, as follows: package example

FROM clause (JPQL / Criteria API)

(for example, Country with no package name). The default name can be overridden by specifying another name

Index Definition

, long , float , double Equivalent wrapper classes from the java.lang package : Byte , Short , Character

JPA Class Enhancer

the syntax of import statements (for example, test.X for a single class or test.pc.* for a package

Defining a JPA Entity Class

and retrieve Point objects from the database: package com.objectdb.tutorial; import jakarta

Step 2: Entity Class and Persistence Unit

the project node (in the [ Package Explorer] window), select  New Source Folder ... right clicking the new source directory node (in the [ Package Explorer] window) and selecting  New Class . Enter  guest as the package name - use  exactly that case sensitive package

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 sensitive package name. Enter  Guest as the class name - use  exactly that case sensitive

Step 4: Add a Controller Class

Class] dialog box by right clicking the guest package node (in the [ Package Explorer] window) and selecting  New Class . The package name should be  guest . Enter  GuestController as ... : package guest; import javax.servlet.http.HttpServletRequest; import org.springframework.beans.factory

Step 4: Add a Servlet Class

] dialog box by right clicking the guest package node (in the [ Package Explorer] window), selecting  New Other... Web Servlet and clicking  Next . The Java package name should be guest ... : package guest; import java.io.IOException; import java.util.List; import javax.servlet.ServletException

Step 3: Add a Context Listener Class

by right clicking the guest package node (in the [ Package Explorer] window), selecting New Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as ... source file with the following code: package guest; import javax.persistence.*; import javax.servlet

Step 2: Entity Class and Persistence Unit

Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Next to create the new entity class. In ... objects in the database was created in the project (under Source Packages guest). Use copy and paste

Step 3: Define a Spring DAO Component

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 replace the content of the new source file with the following code: package guest; import java.util.List

Step 3: Add a Main Class

the database: Right click the tutorial package in the [ Package Explorer] window and select New Class . The package name should be tutorial . Enter Main as the class name (case sensitive). Click Finish to create the class. Copy and paste the following code to the newly created class file: package

Step 2: Entity Class and Persistence Unit

as the package name - use exactly that case sensitive package name. Click Next to create the new ... objects in the database was created in the project (under Source Packages guest). Use copy and paste to replace the new source file content with the following code: package guest; import java.io

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 ... and paste to replace the new source file content with the following code: package guest; import java.io

Step 3: Define a Spring DAO Component

clicking the guest package node (in the [ Package Explorer] window) and selecting  New Class . The package name should be  guest . Enter  GuestDao as the class name - use  exactly ... replace the content of the new source file with the following code: package guest; import java.util

Step 2: Define a JPA Entity Class

To store objects in an ObjectDB database using JPA we need to define an entity class: Right click 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

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 ... class name. The package name should be tutorial . Click Finish to create the new class. Use copy and paste to fill the new source file with the following content: package tutorial; import java.io

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 ... name. The Java package name should be guest. Click Finish to create the new session bean (EJB) class. Now replace the content of the new source file with the following code: package guest; import

Step 4: Add a Controller Class

Class] dialog box by right clicking the guest package node (in the [Projects] window) and selecting ... name. The Package should be guest. Click Finish to create the new Spring Controller class. Now replace the content of the new source file with the following code: package guest; import javax.servlet

Step 4: Add a Servlet Class

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 of the new source file with the following code: package guest; import java.io.IOException; import javax

Step 2: Define a JPA Entity Class

. Enter guest as the package name - use exactly that case sensitive package name. Click Finish ... code: package guest; import java.io.Serializable; import java.sql.Date; import javax.persistence.Entity

jakarta.persistence.Basic

should use the date/time types defined in the package java.time , or the primitive array types char

[ODB1] Chapter 3 - Persistent Classes

(constructors, methods and fields) can have any access modifiers (i.e. public, protected, package or private ... , int , long , float and double . Selected classes in package java.lang : Boolean , Byte , Short , Character , Integer , Long , Float , Double , Number and String . Selected classes in package java

[ODB1] Chapter 2 - A Quick Tour

a metadata file named either package .jdo (generic name) or Person.jdo (name of the class). More details ... , which is devoted to JDO metadata. The following package .jdo file is located in the same directory as person.class : 1 2 3 4 5 6 7 8 Every JDO metadata file contains a single element (lines 4-8). Each package

JPA Web App Tutorial - Maven Project

: mvn package jetty:run The current directory should be  guestbook-web (containing the  pom

Step 6: Set the Spring XML

that file: Right click the WEB-INF node in the [ Package Explorer] window, select  New Other... XML

Step 1: Create a Maven Web Project

.  1.0 ) and  Package ( guest ), and click Finish to create the project. The configuration

Step 1: Create a Maven Web Project

). Enter Maven Version (e.g. 1.0 ) and Package ( guest ). Click the Finish button to create

Java EE JPA Tutorial - Maven Project

the command line: mvn package The current directory should be  guestbook-jee6

Step 4: Run the Application

You can now run the application by right clicking the Main.java file (in the [ Package Explorer ] window) and selecting Run As Java Application . The expected output in the Eclipse [Console] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999

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 to replace the content of the Main class with the following content: package tutorial; import javax

Spring MVC JPA Tutorial - Maven Project

; Maven is installed - extract the zip and run the application from the command line: mvn package

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 WebContent node (in the [ Package Explorer] window), selecting  New Other... Web JSP File and clicking  Next . Enter  guest as the jsp file name

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] dialog box by right clicking WEB-INF under src/main/webapp (in the [ Package Explorer] window), selecting  New Other... Web JSP File and clicking Next . The parent folder should be WEB-INF

[ODB1] Chapter 8 - ObjectDB Server

application, packaged in the odbse.jar file. The jar file contains the entire ObjectDB ... , which is integrated in J2SDK as a standard package since version 1.4. Keystore and Trustore To use

[ODB1] Chapter 9 - ObjectDB Explorer

is packaged in the main ObjectDB development jar file (odbfe.jar / odbee.jar / odbse.jar), located in