ObjectDB Database Search

101-150 of 200 results

Eclipse Public License - v 1.0

the Program in a commercial product offering should do so in a manner which does not create potential

Database Connection using JPA

. If the database does not yet exist a new database file is created . When the application is finished using

Working with JPA Entity Objects

: New, Managed, Removed and Detached. When an entity object is initially created its state is New

InterfaceRef jakarta.persistence.criteria.From

) Create a fetch join to the specified collection-valued attribute using an inner join. Parameters ... Fetch fetch ( PluralAttribute  attribute,  JoinType  jt) Create a fetch join ... fetch ( SingularAttribute  attribute) Create a fetch join to the specified single-valued

InterfaceRef jakarta.persistence.EntityManager

. An application-managed EntityManager may be created via a call to () . The EntityManager must be explicitly ... resources it creates , but should not close the connection itself, nor commit or roll ... ) Create a new mutable EntityGraph , allowing dynamic definition of an entity graph. Parameters: rootType

InterfaceRef jakarta.persistence.criteria.Join

through correlation Inherited from: From Since: JPA 2.0 Join join (Class  entityClass) Create and add an inner ... ;joinType) Create and add a join to the given entity. Parameters: entityClass - the target entity class ... join ( CollectionAttribute  collection) Create an inner join to the specified Collection-valued

InterfaceRef jakarta.persistence.criteria.Subquery

: Expression Since: JPA 3.2 CollectionJoin correlate ( CollectionJoin  parentCollection) Create ... Join correlate ( Join  parentJoin) Create a subquery join object correlated to a join object ... join Since: JPA 2.0 ListJoin correlate ( ListJoin  parentList) Create a subquery list join

InterfaceRef jakarta.persistence.EntityManagerFactory

with the persistence unit, and to create new instances of EntityManager . A persistence unit defines ... the application may be created using the static operations of the Persistence class: if the persistence unit is defined in persistence.xml , an entity manager factory may be created by calling Persistence

ClassRef jakarta.persistence.PersistenceConfiguration

Constructors PersistenceConfiguration (String name) Create a new empty configuration. An empty ... and error reporting Since: JPA 3.2 Public Methods EntityManagerFactory createEntityManagerFactory () Create ... configuration is missing or if the factory could not be created Since: JPA 3.2 String jtaDataSource

InterfaceRef jakarta.persistence.criteria.Expression

Predicate equalTo ( Expression  value) Create a predicate to test whether the expression is equal ... for equality Since: JPA 3.2 Predicate equalTo (Object value) Create a predicate to test ... : predicate testing for equality Since: JPA 3.2 Predicate in (Collection  values) Create a predicate

InterfaceRef jakarta.persistence.criteria.ParameterExpression

from: Expression Since: JPA 3.2 Predicate equalTo ( Expression  value) Create a predicate to test ... (Object value) Create a predicate to test whether the expression is equal to the argument ... of parameter Inherited from: Parameter Since: JPA 2.0 Predicate in (Collection  values) Create

ClassRef jakarta.persistence.Persistence

;configuration) Create and return an EntityManagerFactory for the named persistence unit, using ... : the factory that creates {@link EntityManager} s configured according to the specified persistence unit Since: JPA 3.2 EntityManagerFactory createEntityManagerFactory (String persistenceUnitName) Create

InterfaceRef jakarta.persistence.spi.PersistenceProvider

to create an EntityManagerFactory and/or to cause schema generation to occur. Since: JPA 1.0 Public ... , Map  map) Called by the container when an EntityManagerFactory is to be created . Parameters ... ;configuration) Called by Persistence class when an EntityManagerFactory is to be created . Parameters

InterfaceRef jakarta.persistence.criteria.FetchParent

Fetch fetch ( PluralAttribute  attribute) Create a fetch join to the specified collection-valued ... Since: JPA 2.0 Fetch fetch ( PluralAttribute  attribute,  JoinType  jt) Create ... ( SingularAttribute  attribute) Create a fetch join to the specified single-valued attribute using

InterfaceRef jakarta.persistence.criteria.Fetch

Public Methods Fetch fetch ( PluralAttribute  attribute) Create a fetch join to the specified ... ;attribute,  JoinType  jt) Create a fetch join to the specified collection-valued attribute ... ) Create a fetch join to the specified single-valued attribute using an inner join. Parameters

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$Coalesce

(Collection  values) Create a predicate to test whether the expression is a member ... ) Create a predicate to test whether the expression is a member of the argument list. Parameters: values ... : Expression Since: JPA 2.0 Predicate in ( Expression  values) Create a predicate to test

InterfaceRef jakarta.persistence.criteria.AbstractQuery

Since: JPA 2.0 Root from (Class  entityClass) Create and add a query root corresponding ...  entity) Create and add a query root corresponding to the given entity, forming a cartesian ... an argument to the createQuery or subquery method, that type is returned. If the query was created using

InterfaceRef jakarta.persistence.criteria.Path

how to use Path . Public Methods Expression get ( MapAttribute  map) Create a path corresponding ... ) Create a path corresponding to the referenced collection-valued attribute. Parameters: collection ... .0 Path get ( SingularAttribute  attribute) Create a path corresponding to the referenced

CriteriaQuery.multiselect(selectionList) - JPA Method

depends on the specification of the type of the criteria query object created as well as ... : If the type of the criteria query is CriteriaQuery (i.e., a criteria query object created by ... created by passing a X class argument to the createQuery method), the elements of the list passed

CriteriaQuery.multiselect(selections) - JPA Method

execution depends on the specification of the type of the criteria query object created as well as ... of the criteria query is CriteriaQuery (i.e., a criteria query object created by ... is CriteriaQuery for some user-defined class X (i.e., a criteria query object created by passing a X class

InterfaceRef jakarta.persistence.criteria.CriteriaDelete

(Class  entityClass) Create and add a query root corresponding to the entity ... 2.1 Root from ( EntityType  entity) Create and add a query root corresponding to the entity ... Subquery subquery (Class  type) Create a subquery of the query. Parameters: type - the subquery

InterfaceRef jakarta.persistence.criteria.CriteriaUpdate

. Since: JPA 2.1 Public Methods Root from (Class  entityClass) Create and add a query root corresponding ... to the given entity Since: JPA 2.1 Root from ( EntityType  entity) Create and add a query root ... Since: JPA 2.1 Subquery subquery (Class  type) Create a subquery of the query. Parameters: type

NetBeans/JPA Java EE Tutorial

This is the NetBeans version of the  Java EE JPA tutorial. It demonstrates how to  create and run a full Java EE 6 MVC (Model View Controller) web application in NetBeans - using GlassFish, ObjectDB and JPA. The demo web application manages a basic guestbook page

Step 5: Add a JSP Page

to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA

Step 5: Add a JSP Page

- use  exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 5: Add a JSP Page

  exactly that case sensitive class name. Click  Finish to create the new JSP file. Now

Step 4: Add a Servlet Class

package name should be guest. Click Finish to create the new servlet class. Now replace the content

Step 2: Define a JPA Entity Class

to create the new class. Use copy and paste to replace the new source file content with the following

Step 3: Define an EJB Session Bean

to create the new session bean (EJB) class. Now replace the content of the new source file

Step 5: Add a JSP Page

that case sensitive class name. Click Finish to create the new JSP file. Now replace the content

Getting Started with JPA and NetBeans

This is the NetBeans version of the  Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in NetBeans. The demonstrated application uses JPA to store and retrieve simple  Point entity objects, where each  Point has two persistent fields

Step 4: Add a Servlet Class

package name should be guest. Click Finish to create the new servlet class. Now replace the content

Step 7: Run the Spring Web App

in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat

Explorer bug ? Objects seem to be missing from database in Class view, but are present as references

: ConfigBean []: Set default locale: country(AU), language(en) INFO: RequestBean []: Created : com.greensoft ... [1](TEST: project 1) INFO: RequestBean []: Created : com.greensoft.entity.Source [null](TEST: source ... []: Created : com.greensoft.entity.Project [null](TEST: project 2) INFO: RequestBean []: Persisted: com

InterfaceRef jakarta.persistence.SchemaManager

.getSchemaManager () Since: JPA 3.2 Public Methods void create (boolean createSchemas) Create database ... . Parameters: createSchemas - if {@code true} , attempt to create schemas, otherwise, assume the schemas

Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method

(   String persistenceUnitName,    Map properties ) Create ... when creating the factory. These properties may include properties to control schema generation ... : the factory that creates EntityManagers configured according to the specified persistence unit. Since: JPA 1.0

FieldRef jakarta.persistence.PersistenceConfiguration.SCHEMAGEN_SCRIPTS_ACTION

JPA Static Field in jakarta.persistence.PersistenceConfiguration SCHEMAGEN_SCRIPTS_ACTION The action to be generated as a SQL script. The script is generated in the location specified by {@value #SCHEMAGEN_ CREATE _TARGET} or {@value #SCHEMAGEN_DROP_TARGET}. Standard actions are: none , create , drop , drop-and- create . Since: JPA 3.2

Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method

createEntityManagerFactory (   String persistenceUnitName,    Map  properties ) Create ... to use when creating the factory. These properties may include properties to control schema generation ... : the factory that creates {@link EntityManager} s configured according to the specified persistence unit Since: JPA 1.0

InterfaceRef jakarta.persistence.spi.PersistenceUnitInfo

the persistence provider when creating an EntityManagerFactory . Since: JPA 1.0 Public Methods void ... created by the EntityManagerFactory . The transaction type corresponds to the transaction-type attribute in the persistence.xml file. Return: transaction type of the entity managers created by

InterfaceRef jakarta.persistence.criteria.MapJoin

.Map . Since: JPA 2.0 Public Methods Expression entry () Create an expression that corresponds ... the {@code Map} that is the target of the join Since: JPA 2.0 Path key () Create a path expression ... value () Create a path expression that corresponds to the map value. This method is for stylistic

EnumRef jakarta.persistence.GenerationType

to create one. A vendor may provide documentation on how to create such resources in the event that it does not support schema generation or cannot create the schema resource at runtime. Since: JPA 1.0

EnumConstRef jakarta.persistence.GenerationType.AUTO

may expect a database resource to exist, or it may attempt to create one. A vendor may provide documentation on how to create such resources in the event that it does not support schema generation or cannot create the schema resource at runtime. Since: JPA 1.0

InterfaceRef jakarta.persistence.criteria.CriteriaQuery

.0 Root from (Class  entityClass) Create and add a query root corresponding to the given entity ... from ( EntityType  entity) Create and add a query root corresponding to the given entity ... to the createQuery or subquery method, that type is returned. If the query was created using

AnnotationRef jakarta.persistence.NamedStoredProcedureQuery

that is passed as an argument to the EntityManager.createNamedStoredProcedureQuery method to create an executable ... with the EntityManager methods that create stored procedure query objects. Since: JPA 2.1 StoredProcedureParameter

InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$In

Since: JPA 2.0 boolean isNegated () Whether the predicate has been created from another predicate ... () Create a negation of the predicate. Return: negated predicate Inherited from: Predicate Since: JPA 2

InterfaceRef jakarta.persistence.criteria.Predicate

has been created from another predicate by applying () or by calling CriteriaBuilder.not . Return: boolean indicating if the predicate is a negated predicate Since: JPA 2.0 Predicate not () Create a negation of the predicate. Return: negated predicate Since: JPA 2.0

EntityManagerFactory.addNamedQuery(name,query) - JPA Method

query as a named query such that future query objects can be created from it using the EntityManager ... with the entity manager factory, and thus does not affect subsequent query objects created from it by

AnnotationRef jakarta.persistence.TableGenerator

necessary to specify an index for a primary key, as the primary key index is created automatically ... statement which creates this table. Since: JPA 3.2 String pkColumnName default "" (Optional) Name

AnnotationRef jakarta.persistence.Table

is created automatically. Since: JPA 2.1 String name default "" (Optional) The name of the table ... to the generated DDL statement which creates this table. This is only used if table generation is in

Persistence.generateSchema(persistenceUnitName,map) - JPA Static Method

JPA Static Method in javax.persistence.Persistence void generateSchema (   String persistenceUnitName,    Map map ) Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called when schema generation is to occur