ObjectDB Database Search

101-150 of 200 results

Need help to make this test work and define proper annotations for entities Lists

;& nbsp ; System.out.println(" order .name: "+ord.customer.name); & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ... ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; System.out.println("result. order .name: "+query.getResultList ... message: order .name: customer name Exception in thread "main" [ObjectDB 2.x] SELECT ord FROM& nbsp ; == OrderF

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

.Socket.connect(Unknown Source) at com.objectdb.o.CLS.M(CLS.java:122) ... 5 more & nbsp ; Master Configuration & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp

Getting sales quantity per country with a query, an idea anyone?

(we call it OrderData) contains fields and other entities related to an order , fields we are interrested in are & nbsp ;buyerCountry and orderPrice. Making a list of all possible country then a list of concerned countries (: with orders ) and finally a list of the order quantity per country

Memory Leaks after COMMIT operation (checked on versions 2.6.5 & 2.6.6.b01)

below: +-----------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------+----------------------+ |& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp

How to convert a boolean to an int in the query?

. You should be able to use: & nbsp ;& nbsp ;& nbsp ;& nbsp ; ORDER BY (int)approveEmail + (int)approvePhoneNumber ... database work well: & nbsp ;& nbsp ;& nbsp ;& nbsp ;SELECT (int)c.capital FROM City c ORDER BY (int)c.capital ... the entity object - approveEmail, approvePhoneNumber, ... I can not sort them ORDER BY approveEmail

com.objectdb.o.NLV cannot be cast to com.objectdb.o.CMV

internal exception& nbsp ;& nbsp ; & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; at com.arunta.base.db.RecordingMetaDataDAO.getSingleResult(RecordingMetaDataDAO.java:958)& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; at com.arunta.app.services

IN expression in a Criteria Query

.employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query, but ObjectDB ... Milan Fabian & nbsp ;On ObjectDB page, it is written that ObjectDB is 100% compatible with JPA ... if you replace& nbsp ; Computer_.employeeEntity with "employeeEntity"? Currently you cannot generate Computer

Remove an entity which attributes were changed - OptimisticLockException

We use an OSGi environment and we have three OSGi plugins. & nbsp ; In plugin A an entity is loaded ... flushing changes to the database. You may also& nbsp ; disable optimistic locking checks & nbsp ... that the same EntityManager (not just the same& nbsp ; EntityManagerFactory ) is used by

JPA vs JDO - which is more efficient for OneToMany queries?

this. Using JPA: @Entity class Customer { @OneToMany(mappedBy="customer") Vector orders ; } & nbsp ... and be statically typed. For example: Assume there are Customers and Orders . with JDO I would do this: @PersistenceCapable class Customer { Vector orders ; } class Order { } Whereas with JPA I tend

Optimistic locking: prevent version increment on entity collection attribute

(); The cascade mode is required in order to persist the Reading instances with the Document & nbsp ... you for this. I will try it and will let you know. In the case of an order order line relationship, it makes sense for the version of the parent entity to be updated because order lines are an intrinsic

Persist error @ManyToMany how to define correct entities relationships

the 1000 products and keep Catgory table at 20 entities, not 1000 or 2000. & nbsp ; lo Hoel ... if they were embeddable entities) i added screenshot of the explorer & nbsp ; package testodb; import java ... checkActive(){ if(!em.getTransaction().isActive()) em.getTransaction().begin(); } } } & nbsp ; & nbsp

Detached JPA Entities

EntityManager instances. Explicit detach You can& nbsp ;detach an entity by using the detach method: em ... an entity. In addition, when a managed entity& nbsp ;is serialized and then deserialized, the deserialized ... the reference field with CascadeType . MERGE or CascadeType . ALL . When you merge the& nbsp ;entity

JPA Attributes Annotations

. The persistence provider ignores transient fields when saving or retrieving the entity. & nbsp ;Identity and versioning& nbsp ;mapping Annotations used to define primary keys and concurrency control ... . Specifies that the key of a map field or property& nbsp ;is an enumerated type. Defines the constants

JPA Metamodel and Graphs

. The metamodel represents the domain model& nbsp ;through a hierarchy of types and attributes ... . It is the common super-interface of& nbsp ;both EntityType and Attribute . Retrieval optimization with graphs ... : Describes Entity Graphs and Subgraphs. These structures act as "mini-models"& nbsp ;or a focused view

jakarta.persistence.OrderColumn.name

Jakarta Persistence (JPA) Method in jakarta.persistence.OrderColumn String name (Optional) The name of the ordering column. Defaults to the concatenation of the name of the referencing property or field; " _ "; " ORDER ". Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.PluralJoin

the string-based API may need to specify the type resulting from the Path.get operation in order

jakarta.persistence.criteria.Path

the string-based API may need to specify the type resulting from the get operation in order to avoid

jakarta.persistence.criteria.MapJoin

the string-based API may need to specify the type resulting from the Path.get operation in order

jakarta.persistence.criteria.Root

the Path.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb

jakarta.persistence.criteria.SetJoin

the string-based API may need to specify the type resulting from the Path.get operation in order

jakarta.persistence.criteria.CriteriaBuilder.Case

Jakarta Persistence (JPA) Interface in jakarta.persistence.criteria.CriteriaBuilder jakarta.persistence.criteria.CriteriaBuilder.Case Super Interfaces: Expression , Selection , TupleElement Interface used to build general case expressions. Case conditions are evaluated in the order in

jakarta.persistence.criteria.CollectionJoin

the Path.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb

jakarta.persistence.criteria.CriteriaBuilder.SimpleCase

Jakarta Persistence (JPA) Interface in jakarta.persistence.criteria.CriteriaBuilder jakarta.persistence.criteria.CriteriaBuilder.SimpleCase Super Interfaces: Expression , Selection , TupleElement Interface used to build simple case expressions. Case conditions are evaluated in the order in

jakarta.persistence.criteria.From

may need to specify the type resulting from the Path.get operation in order to avoid the use of Path

jakarta.persistence.criteria.Join

the Path.get operation in order to avoid the use of Path variables. For example: CriteriaQuery q = cb

jakarta.persistence.AttributeOverride

order to specify it as part of the map key or map value. To override mappings at multiple levels

jakarta.persistence.AssociationOverride

that is being overridden in order to specify it as part of the map value. If the relationship

jakarta.persistence.Column

public String getDescription() { return description; } Example 3: @Column(name = " ORDER _COST", updatable

JPA Criteria Query Expressions

are represented by the same Expression interface.& nbsp ; Core expressions The following interfaces ... , representing any typed value, calculation, or path within the query. Extends Selection & nbsp

Chapter 2 - JPA Entity Classes

An entity class& nbsp ;is a user-defined class whose instances can be stored in a database. To store data in an ObjectDB database& nbsp ;using Jakarta Persistence (JPA), you define entity classes that represent your application's data object model. This chapter contains the following sections:

Deleting JPA Entities

entity& nbsp ;is removed, the remove operation cascades to the referenced Address entity. In ... the database. DELETE Queries DELETE queries provide an alternative way to remove entities& nbsp ;from

combined index not used

;& nbsp ;& nbsp ;& nbsp ;[[objectdb.query-plan-var- order =p2,o,v$1,p1]] This hint enforces selecting a query ... selection ----------------------- Apply selection and prepare final results. & nbsp ; & nbsp ; hgzwicker Hans ... more, but you could check in the Action& nbsp ;table, typically we take an endDate that is 30 days from

jakarta.persistence.criteria.ListJoin.index()

element collection for which an order column has been defined. Returns: expression denoting the index. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.StoredProcedureQuery.getResultList()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery List getResultList() Retrieve the list of results from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter

jakarta.persistence.StoredProcedureQuery.getSingleResult()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery Object getSingleResult() Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter

jakarta.persistence.StoredProcedureQuery.getSingleResultOrNull()

Jakarta Persistence (JPA) Method in jakarta.persistence.StoredProcedureQuery Object getSingleResultOrNull() Retrieve a single result from the next result set. The provider will call execute on the query if needed. A REF_CURSOR result set, if any, is retrieved in the order the REF_CURSOR parameter

jakarta.persistence.Index.columnList

Jakarta Persistence (JPA) Method in jakarta.persistence.Index String columnList (Required) The columns included in the index, in order , following the BNF rule column_list given above. Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.NamedStoredProcedureQuery.parameters

Jakarta Persistence (JPA) Method in jakarta.persistence.NamedStoredProcedureQuery StoredProcedureParameter[] parameters Information about all parameters of the stored procedure. Parameters must be specified in the order in which they occur in the parameter list of the stored procedure. Default: {} Since: Jakarta Persistence (JPA) 1.0

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

NB: the following issue only happens with ObjectDB, it does not happen with EclipseLink. & nbsp ... widthPxSideBarLeft = 250; & nbsp ;& nbsp ;& nbsp ; @Min(150) & nbsp ;& nbsp ;& nbsp ; @Max(400) & nbsp ;& nbsp ;& nbsp ; public int getWidthPxSideBarLeft() { & nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ;& nbsp ; return

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),& nbsp ;selecting& nbsp ; New Other... Web Servlet and clicking& nbsp ; Next . The Java package name should be guest

Step 3: Create an ObjectDB Data Source

Explorer] window and selecting& nbsp ; New Data Source . Select ObjectDB Data Source from the list ... the database connection url: Download and save the points.odb & nbsp ;database file (from the Quick ... -server (e.g.& nbsp ; objectdb://localhost/points.odb;user=admin;password=admin ). You may click

Step 5: Design a BIRT Report Chart

a& nbsp ; Chart from the [Palette] window and dropping it on the report design (.rptdesign) layout ... ] tab - enter row["y"] as the Y series and& nbsp ; row["x"] as the X series, (use Ctrl + Space in ... , background, etc.: Click Finish to add the chart to the report page: You may click Preview & nbsp ;now

Step 2: Entity Class and Persistence Unit

) and selecting& nbsp ; New Entity Class ... (or& nbsp ; New Other... Persistence Entity Class and clicking& nbsp ; Next ). Enter Guest as the class name - use exactly that case sensitive class name. Enter guest

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the& nbsp ; GuestServlet node (in the [Projects] window), selecting& nbsp ; Run File , and then clicking& nbsp ; OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created

Step 4: Add a Servlet Class

the page output. Notice that operations on the database are carried on by the& nbsp ; GuestDao session bean, which is instantiated and injected by the application server into the& nbsp ; guestDao field automatically (since the field is marked with the& nbsp ; @EJB annotation). The next step is adding a JSP

Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It& nbsp ;demonstrates& nbsp ;how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields: x and y

Step 2: Entity Class and Persistence Unit

with a default persistence unit (that will be configured later).& nbsp ;If the& nbsp ; Finish button is disabled

Java EE Web Tutorial

is represented by a& nbsp ; Guest entity and all the& nbsp ; Guest entities are stored in an ObjectDB database

Step 6: Design a BIRT Report Table

In this final step we will add a simple table to the report: Open the [Insert Table] dialog box by dragging a Table& nbsp ;from the [Palette] window and dropping it on the report design (.rptdesign ... in the [Navigator] window and selecting Report Run Report : & nbsp ;

JPA Web Application Tutorial

by a& nbsp ; Guest entity and all the& nbsp ; Guest entities are stored in an ObjectDB database