ObjectDB Database Search
51-100 of 200 resultsProblem with distinct select, order by and equivalent alias/attribute path; String q1 = " select distinct s_location "   ... ; q1 = " select distinct s.location "   ... ; String q2 = " select distinct s.location "   | |
ClassCastException on SELECT NEW ... after UPDATE over Java RMI internally runs SELECT NEW ... queries. For example: SELECT NEW com.arunta.base.db.FileNameDTO(r.id, r.fileName) FROM RecordingMetaData AS r WHERE ... A remote RMI client runs SELECT (but not SELECT ... is that once we UPDATE a record from the client (via the RMI interface), all SELECT NEW ... queries | |
Multi selection and distinct in a criteria query hi, How can I realize multi selection with the criteria api concerning distinct? I.e. doing something like SELECT DISTINCT $1, $2 wouldn't work because I do only have something like criteria.multiselect(...) and nothing like builder.distinct( selection ) so that I could do something like criteria | |
Is there any faster select method? SELECT : TypedQuery query = em.createQuery( " SELECT p FROM Point p WHERE p ... ); ** the Point class is of the tutorial. I found the above select method is ten times slower ... . Is there any faster method of select ? TIA pikotenta pikotenta Entity objects can be retrieved by | |
selecting objects that have a particular key/value in persistant HashMap create a JPA query that selects such objects? Something like the following (but clearly does not work) : SELECT p FROM Person p where p.pMap['location']='California' Any thoughts? Thanks, -Adam adamMc Adam Please try the following query: SELECT p FROM Person p WHERE p.pMap | |
Wrong select results Hello, I got a realy strange SELECT problem. In explorer query " select p from Player p where p.confirmed==false", given me some results with p.confirmed==TRUE. And when I try to do (see image) " select p, p.confirmed from Player p where p.confirmed==false", I getting p-confirmed-true | |
Selecting random rows Hello is there way to get random rows? Functions like rand(), random(), newid() doesn't work ;/ for example: em.createQuery(" SELECT s FROM StawkaVat s ORDER BY rand()").setMaxResults(5).getResultList(); gives exception: Exception in thread "AWT-EventQueue-0" [ObjectDB 2.5.6_02] SELECT s FROM StawkaVat s == rand | |
Conditional Selection so when I use... SELECT firstName + " " + middleName + " " + lastName FROM Employee   ... an additional field. e.g. displayName . Use a method in the SELECT clause. It could be a static method | |
Embedded Entity in EmbeddedId not persisted. Error 631 at select.; issue: In case 1 transaction is committed, but select fails! * *   ... (em.createQuery(" select a from A a", A.class).getResultList()); }   | |
Performance in SELECT statement) Example query looks like : String strSelect = " SELECT e FROM TestEntity WHERE e.state.entityState IN | |
Unexpected query token 'delete' (SELECT is expected) (error 752) simple codes(see attachment), failed. gzdillon Lai Yang DELETE queries should not be run with getSingleResult ( which is for SELECT queries). Use executeUpdate instead. See this manual page . support Support | |
A nested SELECT Hello. I have a query UPDATE Look l SET l.partlySold = FALSE WHERE ( SELECT count(a) FROM l.things a WHERE a.thing.status != :status) | |
SSL Configuration the example, SSL is disabled by default. Enable SSL when accessing remote ObjectDB databases | |
Index Definition them to accelerate query execution. Indexes are especially efficient for lookup and range queries: SELECT p FROM Point p WHERE p.x = 100 SELECT p FROM Point p WHERE p.x BETWEEN 50 AND 80 SELECT p FROM Point p ... . ObjectDB also uses indexes for sorting results and for projection: SELECT MIN(p.x) FROM Point p WHERE p.x | |
JPA Queries with full type safety. General query objects Execute SELECT , UPDATE and DELETE queries in JPA using ... (" SELECT ... FROM ... WHERE ..."); or Criteria query objects, as described below. For detailed usage ... that represent the query structure itself ( SELECT , UPDATE, or DELETE) and provide methods for refining | |
JPA Named Queries =" SELECT c FROM Country c") The @NamedQuery annotation has four elements: two required ... @NamedQuery ( name ="Country.findAll", query =" SELECT c FROM Country c") public class Country ... : @Entity @NamedQueries({ @NamedQuery ( name ="Country.findAll", query =" SELECT c FROM Country c | |
Query Parameters in JPA, String name) { TypedQuery query = em. createQuery ( " SELECT c FROM Country c WHERE c.name = :name ... ( EntityManager em, String name) { TypedQuery query = em. createQuery ( " SELECT c FROM Country c WHERE c.name ... string, assuming you select meaningful names. For this reason, named parameters are preferred | |
JPA Criteria Query Expressions and selections , enabling the construction of dynamic, type-safe queries. These interfaces represent ... interfaces is structured as follows: Selection # Base interface for result items └─ Expression # Base ... , representing any typed value, calculation, or path within the query. Extends Selection   | |
Logical Operators in JPQL and Criteria API and area exceed specified limits: SELECT c FROM Country c WHERE c.population :population AND c.area ... a specified limit: SELECT c FROM Country c WHERE c.population :population OR c.area :area Valid operands ... The following query retrieves all countries whose population does not exceed a specified limit: SELECT c FROM | |
DELETE Queries in JPA/JPQL an alternative way to delete entities. Unlike SELECT queries, which retrieve data from the database ... . Selective deletion The structure of DELETE queries is simpler than that of SELECT queries. DELETE queries | |
jakarta.persistence.criteria.CriteriaBuilder criteria queries, compound selections , expressions, predicates, orderings. Note that Predicate ... . Since: Jakarta Persistence (JPA) 1.0 CompoundSelection array ( Selection ... selections ) Create an array-valued selection item. Parameters: selections - selection items Returns: array-valued compound selection | |
jakarta.persistence.criteria.CriteriaQuery Persistence (JPA) 1.0 Selection getSelection () Return the selection of the query, or null if no selection has been set. Inherited from AbstractQuery Returns: selection item. Since: Jakarta Persistence ... must be eliminated. Since: Jakarta Persistence (JPA) 1.0 CriteriaQuery multiselect ( Selection ... selections | |
Issue with DISTINCT Select It is getting more and more frustrating :( We've introduced distinct select instead of regular selection in our code (no changes else) and suddenly receive invalid identifiers in queries exceptions ... ) multiple times for different selections in the same query!! so after debugging the query returns | |
Using SELECT BETWEEN with LocalDate I am trying to query all entities whose date is between today and today + X days. The date inside the entity is a LocalDate . To do so I created the following query: .createQuery( " SELECT e FROM ... the SELECT a Date is used and not a LocalDate , so I ignored this error. Now I tried a LocalDate | |
Deletion of an entry via the table window always deletes the last entry not the selected one If I open a class in the explorer via the "Open Table Window" button, select a row by its index and prex "Del" or use right click "Delete" the last entry of the table is removed and not the selected one. If I try the same using the "Open Tree Window" it works as expected. Kevin Kevin Pfaff Thank | |
NullpointerException at a normal select When I run the following code: EntityManager em = getEm(); Customer result = null; try { logger.debug("Ident: "+ident); result = em.createQuery(" Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident).getSingleResult | |
selective update not working we try to optimize for our queries and tried a selective update, but in explorer it just shows query execution error: UPDATE ObjectNode o SET o.state = 5 where o.classIdentifier = '(MA)' and o.objectNameUpper = 'DMU200P2' and o.state = 0 and o.type = 1 and o.parentNode.classIdentifier | |
JPA Entity Fields the following query, where :d represents the Department entity: SELECT e FROM Employee e WHERE e.department ... this case, the employees field is populated with the results of the following query: SELECT e FROM | |
Step 2: Entity Class and Persistence Unit) and selecting New Class . Enter guest as the package name - use exactly that case ... node (in the [Project Explorer] window) and selecting New Folder (or New Other... General Folder and clicking Next ). Select the project src folder as a parent folder, enter META-INF as a new | |
Java EE 6 JPA Tutorial - Eclipse Project Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select the guestbook-jee6 directory as Root Directory and press ENTER . Select the project and click Finish . Run the project in Eclipse: Right click the project node and select Run As Run | |
Spring MVC JPA Tutorial - Eclipse Project the project zip file: Spring MVC JPA - Maven Project (8KB) Open the Maven project in Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select the guestbook-spring directory as Root Directory and press ENTER . Select the project and click Finish | |
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   ... the [Project Explorer]) and select New Folder. The parent folder should be resources. Enter META | |
Getting Started with JPA - NetBeans Project NetBeans: Select File Open Project... . Select the points-console directory and click Open Project . Run the project in NetBeans: Select Run Run Main Project... (or F6 ). Click Select Main Class . | |
Getting Started with JPA - IntelliJ Project IntelliJ IDEA: Select File Open Project... . Select the points-console directory and click Open Project . Run the project in IntelliJ IDEA: Select Run Run Main Project... (or F6 ). Click Select Main Class . | |
JPA Web App Tutorial - Eclipse Project and extract the project zip file: JPA Web App - Maven Project (6KB) Open the Maven project in Eclipse: Select File Import... Maven Existing Maven Projects and click Next . Select the guestbook-web directory as Root Directory and press ENTER . Select the project and click Finish | |
Step 1: Create a Java EE Web 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)  ... ] window and select Add Jar/Folder... Select the objectdb.jar file from the bin subdirectory | |
Step 1: Create a Web Project.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 Apache Tomcat 6 as the Server. Note ... and select Add Jar/Folder... Select the objectdb.jar file from the bin subdirectory of the ObjectDB | |
JPA Web App Tutorial - NetBeans Project: Select File Open Project... . Select the guestbook-web directory and click Open Project . Run the project: Select Run Run Main Project... (or F6 ). Choose or define the server and click | |
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 ... ] window and select Add Jar/Folder... Select the objectdb.jar file from the bin subdirectory | |
Step 7: Run the Spring Web App), selecting Run As Run on Server , selecting the Tomcat 6.0 server and clicking Finish ... Maven Jetty plugin: Right click the project node and select Run As Maven Build... Enter  | |
Step 5: Design a BIRT Report Chart In this step we will add a simple chart to the report: Open the [New Chart] dialog box by dragging a Chart from the [Palette] window and dropping it on the report design (.rptdesign) layout. In the [ Select Chart Type] tab select Tube as the chart type and click Next . In the [ Select Data | |
Java EE 6 JPA Tutorial - NetBeans Project project in NetBeans: Select File Open Project... . Select the guestbook-jee6 directory and click Open Project . Run the project: Select Run Run Main Project... (or F6 | |
Step 4: Create an ObjectDB Data Set and selecting New Data Set . Select the data source that was created in the previous step (e.g. ObjectDB ... a specified range: SELECT p.x as x, p.y as y FROM Point p WHERE p.x BETWEEN :low AND :high Use copy | |
Spring MVC JPA Tutorial - NetBeans Project: Select File Open Project... . Select the guestbook-spring directory and click Open Project . Run the project: Select Run Run Main Project... (or F6 ). Choose or define | |
Step 6: Set the Spring XML editor (by right clicking and selecting Open With Text Editor or by double click ... that file: Right click the WEB-INF node in the [Package Explorer] window, select New Other... XML | |
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 ... of guests: List guestList = em.createQuery( " SELECT g FROM Guest g", Guest.class).getResultList | |
Step 3: Add a Context Listener Class by right clicking the guest package node (in the [Package Explorer] window), selecting New ... the class name - use exactly that case sensitive class name. Click Next and then Select All to enable | |
Step 6: Set the Spring XML clicking and selecting Edit or by double click and then moving to the XML tab in the editor window ... , select New Other... and then choose the XML category, XML Document and click Next . Enter spring | |
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 Name (e.g. Guestbook ) and select Java EE 5. Enter Maven Group Id (e.g. com.objectdb.tutorial.spring | |
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 a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target |