ObjectDB Database Search

51-100 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

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties) in the JPA Metamodel API: See the Metamodel Attribute Interface Hierarchy section for more details and examples .

JPA Metamodel API Types

The following interfaces and enum represent types in the JPA Metamodel API:  See the Metamodel Type Interface Hierarchy section for more details and examples .

JPA Named Queries

Metamodel interface. For example : em. getMetamodel (). managedType (MyEntity.class); Following

Defining a JPA Entity Class

, any field that is not declared as static or transient is a persistent field. For example

JPA Metamodel API

variables in the FROM clause: See the JPA Metamodel API page (in the ObjectDB manual) for more details and examples .

What's next?

This chapter introduced the basic principles of JPA using ObjectDB. You can go into details by reading the other chapters of this manual. If you prefer to get started with ObjectDB right away you can follow one of the following tutorials to create and run the example program that was described in

CRUD Database Operations with JPA

entity } } em. getTransaction (). commit (); In the above example all the Point objects whose x

Chapter 6 - Configuration

changes the value of $objectdb . For example , in a web application, in which objectdb.jar is located in

Posting Sample Code

and runnable). You may use the following example as an initial template for your test case: package

Server User List

. For example , a value "192.18.0.0-192.18.194.255,127.0.0.1" allows connecting from any IP address in

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

Step 3: Define a Spring DAO Component

the application to the Spring Framework. For instance, in this example the Spring container: Manages

Step 3: Define a Spring DAO Component

the application to the Spring Framework. For instance, in this example the Spring container: Manages

AnnotationRef jakarta.persistence.MapKeyColumn

field or property; " _ "; " KEY ". Example : {@snippet : Since: JPA 2.0 Public Annotation Attributes ... length. Applies only to columns whose type is parameterized by length, for example , varchar or

AnnotationRef jakarta.persistence.Column

specified, the default values apply. Example 1: {@snippet : Since: JPA 1.0 Public Annotation Attributes ... , for example , varchar or varbinary types. Since: JPA 1.0 String name default "" (Optional) The name

AnnotationRef jakarta.persistence.Convert

. Example 1: Convert a basic attribute {@snippet : See Also: Converter Converts Basic Since: JPA 2.1 Public ... the converted attribute relative to the annotated program element. For example : if an plain

AnnotationRef jakarta.persistence.ManyToMany

field or property. Example 1: {@snippet : // In Customer class: See Also: JoinTable Since: JPA 1.0

AnnotationRef jakarta.persistence.ElementCollection

table. Example : {@snippet : See Also: CollectionTable Since: JPA 2.0 Public Annotation Attributes

AnnotationRef jakarta.persistence.AssociationOverrides

JPA Annotation AssociationOverrides Target: TYPE, METHOD, FIELD Implemented Interfaces: Annotation Used to override mappings of multiple relationship properties or fields. Example : {@snippet : See Also: AssociationOverride Since: JPA 1.0 Public Annotation Attributes AssociationOverride [] value

AnnotationRef jakarta.persistence.EntityResult

obtained when insufficient data is available are undefined. Example : {@snippet : Query q = em

Path.get(attributeName) - JPA Method

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

AnnotationRef jakarta.persistence.NamedQuery

JPA Annotation NamedQuery Target: TYPE Implemented Interfaces: Annotation Declares a named query written in the Jakarta Persistence query language. Query names are scoped to the persistence unit. A named query may be executed by calling (String, Class) . The following is an example

AnnotationRef jakarta.persistence.Lob

it defaults to BLOB . Example 1: {@snippet : See Also: Basic ElementCollection Since: JPA 1.0 This annotation is a marker annotation (with no attributes).

AnnotationRef jakarta.persistence.TableGenerator

the members of the package TableGenerator annotation. Example 1: {@snippet

AnnotationRef jakarta.persistence.JoinTable

tables concatenated together (owning side first) using an underscore. Example : @JoinTable( name

AnnotationRef jakarta.persistence.NamedNativeQuery

, for example : @NamedNativeQuery( name = "findWidgets", query = "SELECT o.id, o.quantity, o.item

AnnotationRef jakarta.persistence.OrderBy

when an order column is specified using OrderColumn . Example 1: {@snippet : See Also: OrderColumn

AnnotationRef jakarta.persistence.MapKeyJoinColumn

annotation is specified, a single join column is assumed and the default values apply. Example 1

AnnotationRef jakarta.persistence.Table

apply. Example : {@snippet : Since: JPA 1.0 Public Annotation Attributes String catalog default

AnnotationRef jakarta.persistence.AssociationOverride

to override the mapping of the join table and/or its join columns. Example 1: Overriding

AnnotationRef jakarta.persistence.OneToOne

is the name of the respective embedded field or property. Example 1: One-to-one association that maps

AnnotationRef jakarta.persistence.CollectionTable

elements apply. Example : {@snippet : See Also: ElementCollection AttributeOverride AssociationOverride

AnnotationRef jakarta.persistence.MapKeyEnumerated

. Example : public enum ProjectStatus {COMPLETE, DELAYED, CANCELLED, IN_PROGRESS} public enum SalaryRate

AnnotationRef jakarta.persistence.OneToMany

and the orphanRemoval element apply to the map value. Example 1: One-to-Many association using generics {@snippet

AnnotationAttrRef jakarta.persistence.MapKeyColumn.length

JPA Annotation Attribute in jakarta.persistence.MapKeyColumn int length default 255 (Optional) The column length. Applies only to columns whose type is parameterized by length, for example , varchar or varbinary types. Since: JPA 2.0

AnnotationRef jakarta.persistence.MapKey

. Example 1: {@snippet : Since: JPA 1.0 Public Annotation Attributes String name default "" (Optional