ObjectDB Database Search
101-150 of 200 resultsjava.lang.NullPointerException when using ORDER BY == 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK ... : Caused by : java.lang.IllegalStateException: com.objectdb.o.InternalException: Unexpected internal ... ; Caused by : com.objectdb.o.InternalException | |
Strange behaviour with ORDER BY and IN Hi, after trying out objectdb for a while now and being quite impressed by its speed and overall performance I noticed a strange behaviour where an ORDER BY - directive isn't executed as ... if we order by a simple member (e.g. a String) being the Entity-ID and, at the same time, filter | |
Pre-detach loading: retrieval by navigation not working in if statement that can be referenced by ID, and meets a uniform and powerful IElement interface. - The BooleanValue is doing a heap ... to do it this way; but the wrapped boolean value is not the whole story. webel Dr Darren Kelly By JVM ... -Djava.compiler=NONE webel Dr Darren Kelly OK. It could still be an optimization that is used by the JVM | |
ORDER BY problem, when String starts with language specific character Dear all, I have a problem with ORDER BY clause. I have a simple query: select u from User u order by u.name When the name starts with "normal/english" character, records are ordered correctly ... ORDER BY clause. However, if you have to sort a large result list - it might be more efficient | |
Suspected memleak caused by bad state of EntityManager and using. We find a slow memleak in our application recently, and by trace of Entity construct and finalize, we found the problem is caused by bad state of EntityManager. After first throwing ... and retrieved by EntityManagerFactory, and the instances of Entity constructed by ObjectDB | |
Should derived fields of an EmbeddedId be manually maintained by app code?, of type ECompoundKeyMapItem, identified by their "key" within the EContainer class. The items ... "ECompoundKeyMapSubItem", identified by their keys. The embeddedId for the item class, ECompoundKeyMapItemId ... ] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.6.0_27 (on Windows Server 2008 6.0 | |
Updating JPA Entity Objects by fields that are marked with CascadeType . PERSIST or CascadeType . ALL are also persisted ... yet are also persisted. Automatic Change Tracking As shown above, an update is achieved by modifying a managed ... demonstrated above, array changes are not detected automatically ( by default) but it is possible | |
Chapter 1 - Quick Tour This chapter demonstrates basic ObjectDB and JPA concepts by introducing a simple example program ... that contains points in the plane. Each point is represented by an object with two int fields, x and y, that hold the point's x and y coordinates. The program demonstrates CRUD database operations by | |
SSL Configuration "false" ) specifies if SSL is used. As shown above, SSL is disabled by default. It could be enabled ... signature. This file is generated from the Keystore file by omitting the private key ... . If authenticating the client machine by the server is also required a Keystore file (which might be different | |
jakarta.persistence.NamedEntityGraphs Jakarta Persistence (JPA) Annotation Type jakarta.persistence.NamedEntityGraphs Implemented Interfaces: Annotation Target: Type Used to group NamedEntityGraph annotations. See Also: NamedEntityGraph Since: Jakarta Persistence (JPA) 2.1 Public Static Fields No JavaDoc Info for jakarta.persistence | |
jakarta.persistence.Converts Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Converts Implemented Interfaces: Annotation Target: Method, Field, Type Used to group Convert annotations. Multiple converters must not be applied to the same basic attribute. See Also: Convert Since: Jakarta Persistence (JPA) 2.1 | |
jakarta.persistence.SequenceGenerators Jakarta Persistence (JPA) Annotation Type jakarta.persistence.SequenceGenerators Implemented Interfaces: Annotation Target: Type, Method, Field, Package Used to group SequenceGenerator annotations. See Also: SequenceGenerator Since: Jakarta Persistence (JPA) 2.2 Public Static Fields No JavaDoc | |
jakarta.persistence.TableGenerators Jakarta Persistence (JPA) Annotation Type jakarta.persistence.TableGenerators Implemented Interfaces: Annotation Target: Type, Method, Field, Package Used to group TableGenerator annotations. See Also: TableGenerator Since: Jakarta Persistence (JPA) 2.2 Public Static Fields No JavaDoc Info | |
Schema Update , other schema changes are handled by ObjectDB automatically. Note: Extreme caution is required ... is changed from the original name, which is specified by the required name attribute, to the new name ... attribute is specified the class name is changed from the original name, which is specified by | |
Is ObjectDB better than competing object databases? of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA ... relational database by using an ORM JPA provider such as Hibernate, EclipseLink or Open JPA ... . The support of two standard APIs (JPA and JDO) by ObjectDB minimizes the risk | |
What is the Java Persistence API (JPA)?) is that in JPA data is represented by classes and objects rather than by tables and records as in ... of the Java Persistence API (JPA). By interacting with ObjectDB using standard JPA | |
Obtaining a JPA Database Connection In JPA a database connection is represented by the EntityManager interface. Therefore, in order ... by ObjectDB to be a database URL rather than a persistence unit name. The $objectdb variable represents the ObjectDB home directory ( by default - the directory in which ObjectDB is installed | |
Database Schema Evolution of an entity class are detected by ObjectDB. New entity objects have to be stored in the new class ... again. Conversion of an entity object to the new schema is done on a field by field basis: For every field ... ) The automatic schema evolution mechanism, as described above, is based on matching fields by | |
What's next? This chapter introduced the basic principles of JPA using ObjectDB. You can go into details by ... your own ObjectDB/JPA projects simply by modifying this sample program. Reading the Next Chapters ... the picture by describing some tools and settings that are specific to ObjectDB: | |
Running JPA Queries collection after query execution (e.g. by results.get(0) ). To eliminate this routine operation JPA ... = (Long)query. getSingleResult (); An aggregate COUNT query always returns one result, by definition ... - the executeUpdate method returns the number of objects that have been updated or deleted by the query | |
JPA Annotations for Relationships. The four relationship modes are represented by the following annotations: Unlike ORM JPA ... annotations are supported by ObjectDB for the inverse side of a bidirectional relationship (which is calculated by a query) : Details about all these annotations are provided in Chapter 2 of the ObjectDB manual. | |
Server User List; Every user is represented by a single element: The required username ... inherited by all the other user definitions but the master user itself cannot be used to connect ... . $user represents the user's username and if specified for the master ( "$default") it is interpreted by | |
Removed entities can be found by query in the same transaction Hello, we opened a transaction, load an entity from database and removed this entity by em.remove(). Afterwards the entity can be load again by query although the resulted entity have an attribute ... them available to that transaction. Every snapshot represents a picture of the database as seen by | |
Step 3: Add a Context Listener Class The Guest entity objects will be stored in an ObjectDB database, which will be represented by ... created if not existing yet) when the web application starts, by instantiating ... down), by closing the EntityManagerFactory . To register a ServletContextListener : Open the [New | |
Step 5: Add a JSP Page] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window ... , which contains a simple form for signing the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's guestDao attribute that is set by | |
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 ... + ")"; } } The Guest entity class will represents guests in the database. We also need to configure JPA by setting a META-INF/persistence.xml file: Open the [New Folder] dialog box, e.g. by right clicking the project | |
Eclipse/JPA Spring MVC Web Tutorial a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest JPA entity object and all the Guest | |
Step 4: Run the Application You can run the application now by right clicking the Main node (in the [Projects] window ... 1,000 objects. You can view the content of the database file by opening it in the ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual . | |
JPA Web App Tutorial - Maven Project The JPA Web Application tutorial provides step by step instructions on how to build a simple ... . Building a new application step by step is an effective way to learn - but if you prefer ... ) If Maven is installed - extract the zip and run the application from the command line by | |
NetBeans/JPA Web Application Tutorial application manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object | |
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 | |
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 ... to the project (under Configuration Files). Open the persistence.xml file in a text editor ( by right clicking and selecting Edit or by double click and then moving to the Source or XML tab in | |
Java EE Web Tutorial can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB | |
Step 5: Add a JSP Page] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... a simple form for signing the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in | |
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 ... by opening it in the ObjectDB Explorer : This is the end of the Eclipse JPA tutorial. Learn more about ObjectDB and JPA by reading the Manual . | |
NetBeans/JPA Spring MVC Web Tutorial manages a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest JPA entity object and all the Guest | |
Eclipse/JPA Java EE Tutorial can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB database | |
Eclipse/JPA Web Application Tutorial. The demo web application manages a basic guestbook page. Every visitor can sign the guestbook by ... is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object | |
Getting Started with JPA - Maven Project The Getting Started with JPA tutorial provides step by step instructions on how to build a simple JPA database driven application in Eclipse or NetBeans . Building a new application step by step ... ) If Maven is installed - extract the zip and run the application from the command line by : mvn test | |
JPA Web Application Tutorial can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in an ObjectDB | |
Step 2: Entity Class and Persistence Unit To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window ... a text editor ( by right clicking and selecting Edit or by double click and then moving to the XML | |
NetBeans/JPA Java EE Tutorial. Every visitor can sign the guestbook by filling a simple form. The visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor that has signed the guestbook is represented by a Guest entity object and all the Guest entity objects are stored in | |
Step 5: Add a JSP Page] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New JSP ... a simple form for signing the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in | |
Step 5: Add a JSP Page] dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting ... the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in the previous step). The next step | |
Step 5: Add a JSP Page] dialog box by right clicking WEB-INF under src/main/webapp (in the [Package Explorer] window ... the guestbook, followed by a list of all the guests that have already signed (which are retrieved from the request's guestDao attribute that is set by the controller in the previous step | |
Step 4: Add a Servlet Class box by right clicking the guest package node (in the [Projects] window) and selecting New Servlet ... to generate the page output. Notice that operations on the database are carried on by the GuestDao session bean, which is instantiated and injected by the application server into the  | |
Step 5: Add a JSP Page] dialog box by right clicking the WebContent node (in the [Package Explorer] window), selecting ... generates the guestbook page output, which contains a simple form for signing the guestbook, followed by ... " attribute that is set by the servlet in the previous step). The next step (and the last one in this tutorial) is running the web application . | |
Step 4: Add a Servlet Class In this step we will add a servlet to manage guestbook web requests: Open the [Create Servlet] dialog box by right clicking the guest package node (in the [Package Explorer] window), selecting  ... on the database are carried on by the GuestDao session bean, which is instantiated and injected by | |
Step 4: Create an ObjectDB Data Set the [New Data Set] dialog box by right clicking the Data Sets node in the [Data Explorer] window ... Points ). Enter a data set name (e.g. Points by X ) and click Next . The database in ... ) and high ( 20 ): You may click Preview Results to see the query results: Close the dialog box by | |
Step 1: Create a Web Project We start by creating a new NetBeans Web Application Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project ... : You may have to add Tomcat 6 as a new server by clicking the Add... button . Follow the instructions and specify |