ObjectDB Database Search
51-100 of 200 resultsGroup by date / time Hi, I'm trying to create reporting query that will return entities grouped by year / mont / day ... WHERE YEAR(record_date) = 2009 GROUP BY YEAR(record_date), MONTH(record_date) or maybe something like this: SELECT COUNT(id) FROM stats WHERE YEAR(record_date) = 2009 GROUP BY DATE_FORMAT(record_date | |
Help with JPA2 Criteria and conditional operator grouping; ))); System.out.println("Query: " + c); But I can can never get the grouping to occur ... persistence.xml shows the grouping happening. I've had to dumb down the domain model enough to convey ... . support Support That fixed the conditional grouping issue. Thanks. There is a new problem now however, I'll create a new post Willks William | |
ObjectDB Roles and Groups Hello, How can I incorporate roles/ group in ObjectDB config file? I see no support for this. For example, I would like to place several users under a given group or role, but I see no way of doing this as no such element is present in the config file. Is it possible to have this? st.clair | |
Group by: list if no aggregate function is specified Hello! In a query like SELECT parent, children FROM Parent parent LEFT JOIN p.children children GROUP BY parent maybe it would be good if it will return a list of Object[2], where the second object is a list of children of a parent. Because creating a query to get a list of parents | |
Glassfish 3.1.2.1 and ObjectDB 2.4.3 - The requested resource () is not available. I tried it on Glassfish server 3 .1.2 and 3 .1.2.2. Sometimes I ... INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3 .1.2 (build 23) INFO: Grizzly ... ) at org.glassfish.hk2.classmodel.reflect.Parser$ 3 .call(Parser.java:307) at org.glassfish.hk2 | |
Closed EntityManagerFactory after upgrading glassfish 3.1.1 to 3.1.2 Hi. I have faced a very serious issue. After upgrading the GlassFish server from 3 .1.1 to 3 .1.2 ... more It seems that there is something wrong with persistent context. it seems that glassfish 3 .1.2 behaves differently. I tested another project which uses eclipseLink and java DB. it works well. glassfish 3 .1.1 logins | |
jakarta.persistence.criteria.AbstractQuery.groupBy(List) groupBy ( List grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. Parameters: grouping | |
jakarta.persistence.criteria.Subquery.groupBy(Expression...); Expression ... grouping ) Specify the expressions that are used to form groups over the subquery results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method | |
jakarta.persistence.criteria.AbstractQuery.groupBy(Expression...) groupBy ( Expression ... grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. Parameters | |
jakarta.persistence.criteria.Subquery.groupBy(List); List grouping ) Specify the expressions that are used to form groups over the subquery results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method only overrides | |
jakarta.persistence.criteria.CriteriaQuery.groupBy(Expression...) groupBy ( Expression ... grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method | |
jakarta.persistence.criteria.CriteriaQuery.groupBy(List) groupBy ( List grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions, if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method | |
jakarta.persistence.criteria.AbstractQuery.having(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery AbstractQuery having ( List restrictions ) Specify restrictions over the groups of the query according ... removed. Parameters: restrictions - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.criteria.Subquery.having(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Subquery Subquery having ( List restrictions ) Specify restrictions over the groups of the query according ... : restrictions - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3 .2 | |
jakarta.persistence.criteria.CriteriaQuery.having(List) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaQuery CriteriaQuery having ( List restrictions ) Specify restrictions over the groups of the query according ... : restrictions - a list of zero or more restriction predicates Returns: the modified query. Since: Jakarta Persistence (JPA) 3 .2 | |
Literals in JPQL and Criteria Queries, -127L, 0L, 07777L float : 3 .14F, 0f, 1e2f, -2.f, 5.04e+17f double : 3 .14, 0d, 1e2D, -2., 5.04e+17 ... . literal (1); Expression i2 = cb. literal (Integer.ValueOf(2)); Expression d = cb. literal ( 3 .4 | |
Support for roles/groups in ObjectDB ObjectDB should incorporate roles/ group in ObjectDB config file? I see no support for this. I would like to place several users under a given group or role, but I see no way of doing this as ... , there could be a role/ group element which would categorise the user further. This would help in authentication. Thanks st.clair.clarke St Clair Clarke | |
Numbers in JPQL and Criteria Queries. For example: MOD(11, 3 ) evaluates to 2 . MOD(8, 4) evaluates to 0 . The MOD function takes two integer ... function returns the square root of a specified argument. For example: SQRT(9) is evaluated to 3 SQRT(2 | |
JPA Class Enhancer explained in Chapter 3 ). Special code is added to enhanced classes that automatically notifies ObjectDB ... lists the classes that have been enhanced: [ObjectDB 2.9.4] 3 persistable types have been enhanced | |
jakarta.persistence.MapKeyJoinColumns. The MapKeyJoinColumns annotation groups MapKeyJoinColumn annotations. When the MapKeyJoinColumns annotation ... of the grouped MapKeyJoinColumn annotations. See Also: MapKeyJoinColumn ForeignKey Since: Jakarta Persistence | |
combined index not used retaining only results that satisfy: (v$ 3 .name='scheduledSlot'). Step 6: Group results --------------------- Group the results of step 5 by: a.endDate,v$1.nodePath,v$ 3 .doubleValue. Step 7: Apply ... (ObjectProperty[set])),(v$ 3 .name='scheduledSlot')))" eval="9.2895" group =" group (a.endDate,v$1.nodePath,v | |
ObjectDB 2.3.3ObjectDB 2.3.3 | |
jakarta.persistence.criteria.AbstractQuery.getGroupList() Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.AbstractQuery List getGroupList() Return a list of the grouping expressions. Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Returns: the list of grouping expressions. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.Graph to EntityGraph and Subgraph . See Also: EntityGraph Subgraph Since: Jakarta Persistence (JPA) 3 .2 Public ... is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3 .2 AttributeNode ... Persistence (JPA) 3 .2 void addAttributeNodes ( String... attributeName ) Add one or more attribute | |
jakarta.persistence.criteria.CriteriaBuilder more restriction predicates Returns: and predicate. Since: Jakarta Persistence (JPA) 3 .2 Expression ... . Since: Jakarta Persistence (JPA) 3 .2 Order asc ( Expression expression ) Create an ordering by ... . Since: Jakarta Persistence (JPA) 3 .2 Expression avg ( Expression x ) Create an aggregate expression applying | |
jakarta.persistence.EntityGraph.. Since: Jakarta Persistence (JPA) 3 .2 AttributeNode addAttributeNode ( Attribute attribute ) Get an existing ... : IllegalStateException - if the EntityGraph has been statically defined. Since: Jakarta Persistence (JPA) 3 .2 void ... . Since: Jakarta Persistence (JPA) 3 .2 Subgraph addElementSubgraph ( String attributeName ) Add | |
jakarta.persistence.EntityManager Exception thrown by ConnectionFunction.apply , if any. Since: Jakarta Persistence (JPA) 3 .2 void ... Persistence (JPA) 3 .2 Query createQuery ( CriteriaUpdate updateQuery ) Create an instance of Query ... other than NONE is specified. Since: Jakarta Persistence (JPA) 3 .2 T find ( EntityGraph entityGraph , Object | |
jakarta.persistence.Subgraph. IllegalArgumentException - if the attribute is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3 .2 ... has been statically defined. Since: Jakarta Persistence (JPA) 3 .2 void addAttributeNodes ( String ... Persistence (JPA) 3 .2 Subgraph addElementSubgraph ( String attributeName ) Add a node to the graph | |
Apache License, Version 2.0, January 2004 Works in Source or Object form. 3 . Grant of Patent License . Subject to the terms and conditions | |
ObjectDB License Agreement [ver. 2.0.4] by this agreement. 3 . The free edition of the Software includes restrictions on the number of classes | |
JPA Metamodel Attributes The Jakarta Persistence (JPA) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the attributes of managed persistent types (entities, embeddable and superclasses). Metamodel Attributes Hierarchy in Jakarta Persistence (JPA) 3 . Base attribute definitions | |
JPA Metamodel Types The Jakarta Persistence (JPA) Metamodel API defines a structured hierarchy of interfaces and enumerations to represent the persistent types within a domain model. Metamodel Types Hierarchy in Jakarta Persistence (JPA) 3 .2 Base type definitions The core abstractions of model types | |
JPA Core Types and inheritance relationships. Jakarta Persistence (JPA) 3 .2 Core Types Bootstrapping and Configuration | |
CRUD Database Operations with JPA is greater than or equal to 100 are deleted. All other Point objects are updated. Chapter 3 | |
Eclipse Public License - v 1.0 the copyright license set forth in this Agreement. 3 . REQUIREMENTS A Contributor may choose | |
Entity Management Settings. For more details, see the Updating Entities section in Chapter 3 . | |
JPA Criteria FROM and JOIN is structured as follows: Criteria Query From Components in Jakarta Persistence (JPA) 3 .2  | |
Step 1: Create a Java EE 6 Web Project a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button ... to GlassFish 3 (which has to be downloaded separately) . Click the Finish button to create the Java EE 6 | |
JPA Tutorials, such as GlassFish 3 .0.1 or JBoss AS 6. Another tutorial shows how to use JPA in a Spring MVC Framework 3 web application: Spring MVC and JPA Maven Projects for Download The tutorials provide step | |
NetBeans/JPA Java EE Tutorial and menus might look slightly different but the code would be the same). Note: ObjectDB 2. 3 .7_04 or later is required if Glassfish 3 .1.2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps: | |
Eclipse/JPA Spring MVC Web Tutorial) including Maven Integration for WTP (in m2eclipse extras). The tutorial was written for Eclipse 3 | |
Getting Started with JPA and Eclipse). This tutorial was written for Eclipse 3 .6.1 but it should work with other Eclipse versions as | |
Step 7: Run the Spring Web App/. This Spring web application can also run with GlassFish 3 .0.1, with a small change in the  | |
Java EE JPA Tutorial - Maven Project The Java EE Web Application tutorial provides step by step instructions on how to build a simple Java/JPA database driven web application (for GlassFish 3 / JBoss 6) in Eclipse or NetBeans . Building a new application step by step is an effective way to learn - but  | |
Java EE Web Tutorial This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application using GlassFish, ObjectDB and JPA. Since this web application uses Java EE 6 EJB (session beans) it requires a full Java EE 6 application server, such as GlassFish 3 .0.1 or JBoss AS 6 | |
Eclipse/JPA Web Application Tutorial (just download and extract). The tutorial was written for Eclipse 3 .6.1 but it should work | |
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 5 - JDO Connections Transaction (as shown in section 5. 3 ) or at the PersistenceManagerFactory level as a default ... .getRestoreValues(); Transaction modes are discussed in section 5. 3 , which deals with transactions. 5 ... that at some level a proper try-catch block exists. 5. 3 javax.jdo.Transaction The javax.jdo | |
[ODB1] Chapter 8 - ObjectDB Server his or her private database files (as demonstrated in section 8. 3 ). The element The element ... to do the same operation in subdirectories of that directory. 8. 3 Multi User Server | |
ObjectDB 1.0 Manual on programming with ObjectDB and JDO: Chapter 3 - Persistent Classes Explains what a persistence capable |