Internal Website Search

51-100 of 200 results

Metamodel Attribute NOT EQUALS to same Attribute in a different EntityManager

Attribute from Metamodel initialized on @PostConstruct event IS NOT EQUALS of the same Attribute ... and the other on a @Controller @RequestMapping event, they return not equals Attributes using ... to Metamodel attributes that may solve this. support Support Very thank you my friend!  flavioreboucassantos Flávio Rebouças Santos

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field. Is it possible to prevent the increment of the version of entity E when entities are added to or removed from the collection

Problem with distinct select, order by and equivalent alias/attribute path

to me switching from alias to attribute path between projection and order by part... bklink Benjamin Klink

Can't get arraylist/vector type attributes

I have a class that contains some attributes of type Vector (also tried with ArrayList and same happens). When I try to get an object from that class doing using the find method it works fine, I get the object. But when I call the close method to close the EntityManager the information from

The attribute column name (EXCEPTION) is a reserved SQL-99 keyword.

How do I fix this error/warning that Netbeans gives me? "The attribute column name (EXCEPTION) is a reserved SQL-99 keyword." ThreaT Ashton Hogan This warning indicates mapping to a field in the database that its name conflicts with SQL. This is not an issue with ObjectDB

is JDO field attribute "indexed" supported?

. But there is another way which is to specify an indexed attribute on the field element, like or indexed="true". It doesn't

Remove an entity which attributes were changed - OptimisticLockException

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic

Using of ConcurrentHashMap as attribute

Hello, it is possible to use an entity attribute of type java.util.concurrent.ConcurrentHashMap Your web site http://www.objectdb.com/object/db/database/features 'Object Model & Data Types' has no guidelines about this data type. Best regards btc_es BTC EmbeddedSystems You can persist a Map field

How to apply constraints in collection attributes of entity.

How to apply constraints like unique, not null ...etc in collection attribute of a entity. Example : @Entity @Table(name = "agent") public class Agent implements Serializable { @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long Id; private List PhoneNumbers; public Agent() { } public

Get the last occurence of a list attribut

Get the last occurence of a list attribut

Apache License, Version 2.0, January 2004

, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices ... copy of the attribution notices contained within such NOTICE file, excluding those notices ... are for informational purposes only and do not modify the License. You may add Your own attribution notices

Server Configuration

specifies how clients can connect to the server: The port attribute specifies a TPC port ... when connecting to the database (as explained in the JPA Overview section in chapter 3). The max attribute ... connections limit. The element The element has one attribute , path , which specifies the location

Database Replication and Clustering

;  The  url   attribute of the element defines a master database. As demonstrated above, a full URL has to be specified including user and password attributes . The slave server uses ... the location of the master server on port 6000. Notice that the specified user and password attributes

Auto Generated Values

the allocationSize attribute . It is possible that some of the IDs in a given allocation will not be used ... difference is related to the initial value attribute . Whereas the SEQUENCE strategy maintains ... . The implication for the initialValue attribute is that if you want sequence numbers to start with 1 in the TABLE

Chapter 6 - Configuration

apply to all the relevant configuration elements and attributes : $objectdb , representing ... path attribute value in the configuration file. The mb and kb suffixes, representing megabytes and kilobytes (respectively), can be used in any size value attribute in the configuration file. Appropriate

SSL Configuration

contains the following element: The enabled attribute of the ssl element (whose value is "true" or ... attribute of the ssl  element has to be set to true . Every Keystore / Truststore file is represented by a separate child element with two required attributes : path , which specifies the path

javax.persistence.metamodel.IdentifiableType

mapped superclass types. Since: JPA 2.0 Public Methods Attribute getAttribute (String name) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name Throws: IllegalArgumentException

javax.persistence.metamodel.EmbeddableType

Methods Attribute getAttribute (String name) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name Throws: IllegalArgumentException - if attribute of the given name is not present

javax.persistence.metamodel.ManagedType

Public Methods Attribute getAttribute (String name) Return the attribute of the managed type that corresponds to the specified name. Parameters: name - the name of the represented attribute Return: attribute with given name Throws: IllegalArgumentException - if attribute of the given name

Database Transaction Replayer

on a different physical device by setting the path attribute in the configuration . The recording

JPA Persistable Types

can be set explicitly by using the name attribute of the Entity annotation: @Entity ( name ="MyName

JPA Metamodel API

The JPA Metamodel API, which is introduced in JPA 2.0, enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The main interface of the JPA Metamodel API is: Types (mainly classes) and attributes (persistent field and properties

Shared (L2) Entity Cache

configuration :       The level2 attribute determines the size

ObjectDB Object Database Features

ObjectDB provides a rich set of features. Many features are implemented as part of ObjectDB's support of the JPA and JDO APIs. Fundamental features of relational databases (e.g. primary keys, derived attributes , grouping queries and aggregate queries) which are usually missing from Object Oriented

JPA Persistence Unit

A persistence unit is defined by a persistence-unit XML element. The required name attribute ( “my-pu

Criteria Query From Elements

an attribute of a preceding variable in the FROM clause) are represented by the Join subinterface

ObjectDB Website - Terms and Conditions of Use

are under other licenses. See the Credits and Attributions page. 3. Disclaimer The materials on ObjectDB

javax.persistence.criteria.From

belonging to the type, and for Paths of attributes belonging to the type. Since: JPA 2.0 Public Methods Fetch fetch ( PluralAttribute   attribute ) Create a fetch join to the specified collection-valued attribute using an inner join. Parameters: attribute - target of the join Return: the resulting

javax.persistence.EntityGraph

the root of an entity graph that will be used as a template to define the attribute nodes ... to add subgraphs implicitly create the corresponding attribute nodes as well; such attribute nodes ... Public Methods void addAttributeNodes ( Attribute ...  attribute ) Add one or more attribute nodes

javax.persistence.Subgraph

JPA Interface Subgraph Type Parameters: - The type of the attribute . This type represents a subgraph for an attribute node that corresponds to a Managed Type. Using this class, an entity subgraph ... .1 Public Methods void addAttributeNodes ( Attribute ...  attribute ) Add one or more attribute

Remove an entity which attributes were changed

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic

Support Attribute Conversion for Persistence

The @Converter annotation and the Attribute Converter interface have two big benefits: 1) They make it possible to persist any as-yet-unsupported java types that do not implement java.io.Serializable. (If they do, it is possible to persist them automatically by turning on the   option in

javax.persistence.criteria.Join

) article explains how to use Join . Public Methods Attribute getAttribute () Return the metamodel attribute corresponding to the join. Return: metamodel attribute corresponding to the join Since: JPA 2 ... join to the specified Collection-valued attribute . Parameters: collection - target of the join

Step 4: Add a Servlet Class

is retrieved from the application scope attribute , and then an EntityManager (representing a database ... entity objects are retrieved from the database and stored in the request's "guest" attribute ... uses the "guest" attribute to generate the page output. Finally, the database connection (including

Step 4: Add a Servlet Class

on every http request: The EntityManagerFactory is retrieved from the application scope attribute ... and stored in the request's "guest" attribute . Then the processing is forwarded to the JSP page (which is presented in the next tutorial step). The JSP uses the "guest" attribute to generate the page output

Step 3: Add a Context Listener Class

it as an application scope attribute in the servlet context - when the web application starts ( contextInitialized ). Retrieves the EntityManagerFactory from the application scope attribute and closes

Step 4: Add a Servlet Class

from the database and stored in the request's "guest" attribute . Then the processing is forwarded to the JSP page (which is presented in the next tutorial step). The JSP uses the "guest" attribute

Step 3: Add a Context Listener Class

and creates an EntityManagerFactory instance and stores it as an application scope attribute in ... the EntityManagerFactory from the application scope attribute and closes the EntityManagerFactory and the database

Step 4: Add a Servlet Class

"guest" attribute . Then the processing is forwarded to the JSP page (which is presented in the next tutorial step). The JSP uses the "guest" attribute to generate the page output. Notice that operations

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's guestDao attribute that is set by

Step 4: Add a Controller Class

a request attribute (whose name is "guestDao" and its value is guestDao ). The next step is 

Step 5: Add a JSP Page

that have already signed (which are retrieved from the request's "guests" attribute that is set by the servlet in

Step 4: Add a Controller Class

( "guest.jsp" ) and passes the GuestDao component to the JSP as a request attribute (whose name

Step 5: Add a JSP Page

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

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

the request's  guestDao attribute that is set by the controller in the previous step

Step 5: Add a JSP Page

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

[ODB1] Chapter 2 - A Quick Tour

the package (e.g. line 6). Both and elements must have a name attribute . An empty name is specified

[ODB1] Chapter 9 - ObjectDB Explorer

all the Extents. This tool is useful when changing the value of the "requires-extent" attribute (in the JDO

[ODB1] Chapter 3 - Persistent Classes

. It can include constructors, methods, fields, attributes ( final , abstract , public ), inheritance