ObjectDB Database Search

51-100 of 200 results

Grouping by date()

have to group by date(). For few queries I was concatenating 'date' from year()-month()-day() calls ... with new version. When you group by date() there are two days per day. I mean group by divides each day ... with this issue. Query: select hour(ov.created), count(ov) from ObjectView ov group by hour(ov.created) order by

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

Defining a JPA Entity Class

with JPA, you might have noticed that the Point entity class has no primary key ( @ Id ) field. As an object database, ObjectDB supports implicit object IDs , so an explicit primary key is not required

JPA Shared (L2) Entity Cache

. contains (MyEntity.class, Long.valueOf( id )); You can remove cached entities from the cache by using ... .class, Long.valueOf( id )); // Remove all the instances of a specific class from the cache: cache. evict

Chapter 1 - Quick Tour

this chapter in your IDE , see one of the following tutorials: These tutorials provide step-by-step instructions on how to start using JPA in your IDE with the ObjectDB object database. Because ObjectDB

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.metamodel.IdentifiableType

the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Parameters: type - the type of the represented declared id attribute Returns: declared id attribute. Throws: IllegalArgumentException - if id attribute of the given type is not declared in the identifiable type or

jakarta.persistence.metamodel.EntityType

) Return the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Inherited from IdentifiableType Parameters: type - the type of the represented declared id attribute Returns: declared id attribute. Throws: IllegalArgumentException - if id attribute of the given type

jakarta.persistence.metamodel.MappedSuperclassType

the attribute that corresponds to the id attribute declared by the entity or mapped superclass. Inherited from IdentifiableType Parameters: type - the type of the represented declared id attribute Returns: declared id attribute. Throws: IllegalArgumentException - if id attribute of the given type is not

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

Is ObjectDB better than competing object databases?

, supporting community, forums, IDEs support, tools, books, tutorials and sample code. ObjectDB

JPA Class Enhancer

argument. Setting a Java agent enhancer in an IDE In Eclipse, JVM arguments can be set globally in

Privacy Policy

automatically, including, but not limited to, the type of mobile device You use, Your mobile device unique ID

ObjectDB - JPA Object Database for Java

flexibility - same API for Relational and Object Databases. Better community support (tools, IDEs , books

BIRT/ODA ObjectDB Driver

the IDE . Note: See this issue regarding matching the driver version to the ObjectDB server version

Posting Sample Code

warnings (There is no ID defined for this entity hierarchy, The class should have a no-arg public or

JPA ORM Mapping Annotations

superclasses or embeddables: Used to override the mapping of a Basic (field) property or id

JPA Components Annotations

. This allows the entity to use a flat ID class for lookups. For more information, see the Primary Key section

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

jakarta.persistence.TableGenerator

= " ID _GEN", pkColumnName = "GEN_KEY", valueColumnName = "GEN_VALUE", pkColumnValue = "EMP_ ID ", allocationSize = 1) @ Id @GeneratedValue(strategy = TABLE, generator = "empGen") int id ; ... } Example 2: @Entity public class Address { ... @TableGenerator( table = " ID _GEN", pkColumnName = "GEN_KEY

jakarta.persistence.GeneratedValue

superclass in conjunction with the Id annotation. The persistence provider is only required ... primary keys is not supported. Example 1: @ Id @GeneratedValue(strategy = SEQUENCE, generator = "CUST_SEQ") @Column(name = "CUST_ ID ") public Long getId() { return id ; } Example 2: @ Id @GeneratedValue

jakarta.persistence.OneToOne

(optional = false) @JoinColumn(name = "CUSTREC_ ID ", unique = true, nullable = false, updatable ... primary key values. // On Employee class: @Entity public class Employee { @ Id Integer id ; @OneToOne @MapsId EmployeeInfo info; ... } // On EmployeeInfo class: @Entity public class EmployeeInfo { @ Id

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.MapKeyClass

is not used when MapKeyClass is specified and vice versa. Example 1: @Entity public class Item { @ Id int id ; ... @ElementCollection(targetClass = String.class) @MapKeyClass(String.class) Map images ... can be defaulted @Entity public class Item { @ Id int id ; ... @ElementCollection Map images

jakarta.persistence.MapKeyJoinColumn

and the default values apply. Example 1: @Entity public class Company { @ Id int id ; ... @OneToMany ... ") Map organization; } Example 2: @Entity public class VideoStore { @ Id int id ; String name; Address ... = " ID ") Map videoInventory; ... } @Entity public class Movie { @ Id long id ; String title

jakarta.persistence.NamedNativeQuery

= "findWidgets", query = "SELECT o. id , o.quantity, o.item " + "FROM Order o, Item i " + "WHERE (o.item = i. id ... ( name = "OrderItems", query = "SELECT o. id , o.quantity, o.item, i. id , i.name, i.description " + "FROM Order o, Item i " + "WHERE (o.quantity 25) AND (o.item = i. id )", resultSetMapping

Java EE JPA Tutorial - Maven Project

project in your IDE : NetBeans IDE and IntelliJ IDEA have built in Maven support.

Getting Started with JPA - Maven Project

the Maven project in your IDE : NetBeans IDE and IntelliJ IDEA have built in Maven support.

Spring MVC JPA Tutorial - Maven Project

://localhost:8080/Guestbook/ You may also open and run the Maven project in your IDE : NetBeans IDE and IntelliJ IDEA have built in Maven support.

Eclipse/JPA Spring MVC Web Tutorial

software: Java JDK 6.0 (or above). Eclipse IDE for Java EE Developers. m2eclipse (Maven plugin

Java EE 6 JPA Tutorial - Eclipse Project

when the Maven project is imported into the IDE ). Choose or define the server and click  Finish

Step 3: Define an EJB Session Bean

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g. id ", Guest.class

Step 3: Define a Spring DAO Component

() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g. id ", Guest.class); return

Spring MVC JPA Tutorial - Eclipse Project

project is imported into the IDE ). Choose or define the server and click  Finish . Eclipse

Eclipse/JPA Java EE Tutorial

For this tutorial you will need the following software: Java JDK (6.0 or above). Eclipse IDE

Eclipse/JPA Web Application Tutorial

you will need the following software: Java JDK (6.0 or above). Eclipse IDE for Java EE Developers Apache

Getting Started with JPA

to start by running a live sample application in your IDE , you should be able to follow

Step 3: Define a Spring DAO Component

getAllGuests() { TypedQuery query = em.createQuery( "SELECT g FROM Guest g ORDER BY g. id ", Guest.class); return

JPA Web App Tutorial - Eclipse Project

is imported into the IDE ). Choose or define the server and click Finish . Eclipse should open an internal

Step 1: Create a Java Project

We start by creating a new Java project, using: File New Project... If you are using Eclipse IDE for Java EE Developers, you can see in the [New] menu a command for creating a [JPA Project]. We are not using that type of project in this tutorial but rather an ordinary Java Project. In the [New

Step 3: Define an EJB Session Bean

Guest g ORDER BY g. id ", Guest.class); return query.getResultList(); } } The GuestDao session bean (EJB

Getting Started with JPA and NetBeans

; x and  y . For this tutorial, besides the Java JDK (8 or above) and the NetBeans IDE (any

Which API should I use - JPA or JDO?

and extends the availability of experienced developers, forums, IDEs support, tools, books