ObjectDB Database Search

101-150 of 200 results

UserException: Package com.example.model is not found by the enhancer

and move the dist directory out of the project to a remote location and run it using java -jar example .jar then I get the exception: com.objectdb.o.UserException: Package com. example .model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com. example .model

Suggestion for improving the examples

and INDEXES were included. Frankly it is a huge wast those examples have not been provided. For example ... an employee Object but wait What does the table look like. Nope not in the example . Wait ... ; as in your example , I would what? Have to  create getters and setters specific to a hierarchy

Concerning coding style of the example in the posting instructions

with reference to the coding example in the posting instructions and many of your other examples posted in the forums. While I appreciate the recommended coding style as shown makes for convenient minimal examples ... for entities, compliant entity classes belong in separate files. Secondly, in many forum posting examples

ObjectDB CRUD Examples

these manual pages . We do not have specific NetBeans examples in addition to  the tutorials ... and Transactions? I'm finding these examples : http://www.objectdb.com/java/jpa/persistence/crud difficult as they don't really give a full example of what to do. This makes it difficult as

ObjectDB and Spring Boot - sharing a simple working example

Following previous questions on the subject I'd like to share a simple working example of ObjectDB and Spring Boot. The code of the  example can be found here: https://github.com/kirshamir/spring-data-jpa-objectdb  The example uses the automatic query generation performed by

Guestbook example from tutorial does not work.

you for your quick reply. But thats a maven example . If i place the object-jee.jar to th /Web-inf/lib ... examples have been updated and tested successfully with TomEE 1.7.2 and ObjectDB 2.6.2_02. support Support

Suggest link to Maven example from Enhancer tool page

The maven plugin example here is incomplete:  https://www.objectdb.com/java/jpa/tool/enhancer#Maven_and_ANT_Enhancement_ Taken literally it can't work because it's missing this:     ... ; May I suggest you also link from there to the tutorial example :  https://www.objectdb.com

Example database world.odb

Hello! Where can I find classes for example database world.odb? Thanks for the answer.   Robin_2005 Kompan Serge The source code of the relevant entity classes is attached. support Support ... the relationships OneToMany and ManyToMany? I want to see a working example :-) Robin_2005 Kompan Serge

Examples of queries

Dear ObjectDB, Is there somewhere an example in Java that uses getResultList for a Group by query. Like: SELECT ProductID ,SUM(Quantity) FROM OrderDetails Group by ProductID;  Best Regards, Paul paulfo Paul Boon See this sections in the manual regarding SELECT queries that select multiple

Your Glassfish example on the web

Hi, I'm doing a school project with objectdb and glassfish. I have tried your web tutorial "Java EE JPA (Glassfish) with Netbeans". When I try to run the example and add an entry in the guestbook, it throws this exception: com.objectdb.o._PersistenceException: Attempt to obtain a connection from

JPA example is failing

I am running the server using this command: java -cp objectdb.jar com.objectdb.Server start console output: ObjectDB Server started on port 6136. I am using the example you have given for JPA . I am using maven project download. Creating connection using - EntityManagerFactory emf = Persistence

Groovy JPA example

Groovy JPA example

Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1

Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1

javax.jdo.JDOUserException Failed to locate field field exampleField using reflection (error 363)

to locate field field com. example .db.BDO.testField using reflection (error 363)     at java.base/java.lang.Thread.run(Thread.java:833) com. example .db_utils.jdo.exception.ConnectionException     at com. example .db_utils.jdo.BasicJDOConnection.persistenceManagerInit

Dependency from enhanced classes to the objectDB library

. We have create a “small” example based on our OSGi Bundle structure. The example contains 7 eclipse projects ... EmbeddedSystems Please provide step by step instructions on how to use this example to get the exception on #1 (or if the example demonstrates a different exception, please describe it in details). support

Extra uninitialised entities spawned on merge()

relationship Element owner - List ownedElements , and Example is a subclass entity with a relationship ... ;       Example e = new Example (root, " example ");     ... ; }     @Entity     static public class Example extends Element {  

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples

InternalError on multiple AND and JOIN Query

] ------------------------------------------------------------------------ [INFO] Building Example Objectdb ... ] Deleting directory /home/pedwards/CONTEXTSPACE_workarea/objectdb_ example /target [INFO ... _workarea/objectdb_ example /target/classes [INFO] [resources:testResources {execution: default

jakarta.persistence.FieldResult

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.FieldResult Implemented Interfaces: Annotation Used in conjunction with the EntityResult annotation to map columns specified in the SELECT list of a SQL query to the properties or fields of an entity class. Example : Query q = em

jakarta.persistence.Enumerated

to be EnumType.ORDINAL . Example : public enum EmployeeStatus {FULL_TIME, PART_TIME, CONTRACT} public enum

jakarta.persistence.EnumeratedValue

. Example : enum Status { OPEN(0), CLOSED(1), CANCELLED(-1); @EnumeratedValue final int intValue; Status(int

jakarta.persistence.criteria.PluralJoin

to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p

jakarta.persistence.criteria.Path

the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from

jakarta.persistence.criteria.MapJoin

the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from

jakarta.persistence.criteria.Root

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

jakarta.persistence.criteria.SetJoin

the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q

jakarta.persistence.UniqueConstraint

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.UniqueConstraint Implemented Interfaces: Annotation Specifies that a unique constraint is to be included in the generated DDL for a primary or secondary table. Example : @Entity @Table( name = "EMPLOYEE", uniqueConstraints

jakarta.persistence.Transient

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Transient Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated property or field is not persistent. May annotate a property or field of an entity class, mapped superclass, or embeddable class. Example

jakarta.persistence.criteria.CollectionJoin

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

jakarta.persistence.criteria.CriteriaQuery

from a get or join operation and the query result type is specified. For example : CriteriaQuery q = cb

jakarta.persistence.criteria.ListJoin

to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q

jakarta.persistence.criteria.From

of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person

jakarta.persistence.criteria.Join

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

jakarta.persistence.AttributeOverrides

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.AttributeOverrides Implemented Interfaces: Annotation Target: Type, Method, Field Used to override mappings of multiple properties or fields. Example : @Embedded @AttributeOverrides({ @AttributeOverride(name = "startDate", column

jakarta.persistence.AssociationOverrides

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.AssociationOverrides Implemented Interfaces: Annotation Target: Type, Method, Field Used to override mappings of multiple relationship properties or fields. Example : @MappedSuperclass public class Employee { @Id protected Integer id

jakarta.persistence.CollectionTable

, the default values of the CollectionTable annotation elements apply. Example : @Embeddable public class

jakarta.persistence.PrimaryKeyJoinColumn

table of the superclass. Example : Customer and ValuedCustomer subclass @Entity @Table(name = "CUST

jakarta.persistence.PrimaryKeyJoinColumns

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.PrimaryKeyJoinColumns Implemented Interfaces: Annotation Target: Type, Method, Field Groups PrimaryKeyJoinColumn annotations. It is used to map composite foreign keys. Example : ValuedCustomer subclass @Entity @Table(name = "VCUST

jakarta.persistence.SequenceGenerator

SequenceGenerator annotation. Example : @SequenceGenerator(name = "EMP_SEQ", allocationSize = 25

jakarta.persistence.SqlResultSetMapping

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.SqlResultSetMapping Implemented Interfaces: Annotation Target: Type Specifies a mapping of the columns of a result set of a native SQL query or stored procedure. Example : Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o

jakarta.persistence.Temporal

the ElementCollection annotation when the element collection value is of such a temporal type. Example

jakarta.persistence.Table

is specified for an entity class, the default values apply. Example : @Entity @Table(name = "CUST", schema

jakarta.persistence.NamedNativeQuery

how the native SQL query result set should be interpreted, for example : @NamedNativeQuery( name

jakarta.persistence.NamedQuery

.createNamedQuery . The following is an example of the definition of a named query written in

jakarta.persistence.OrderColumn

column value for the first element is 0 . Example : @Entity public class CreditCard { @Id long

jakarta.persistence.criteria.Path.get(String)

to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root

jakarta.persistence.MapKeyColumn.length

Jakarta Persistence (JPA) Method in jakarta.persistence.MapKeyColumn int length (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Default: 255 Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Convert.attributeName

Jakarta Persistence (JPA) Method in jakarta.persistence.Convert String attributeName A name or period-separated path identifying the converted attribute relative to the annotated program element. For example : if an entity class is annotated @Convert(attributeName = "startDate

jakarta.persistence.Column.length

Jakarta Persistence (JPA) Method in jakarta.persistence.Column int length (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Default: 255 Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.criteria.CriteriaQuery.select(Selection)

and the query result type is specified. For example : CriteriaQuery q = cb.createQuery(String.class); Root