About GeneratedValue

forum_thread

problem with lazy loading - unittest project attached

hi, i'm still testing objectdb together with spring-data-jpa. i made a test which should simulate 4 requests 1. save entity 2. read an existing entity, add onetomany relation 3. read an existing entity, add another onetomany relation 4. read entity, get relations. i have the feeling this is not the optional way to test this, because of the differnt transaction behavior. the test is not transactional, but the spring repository methods are. ... commit - please consider: a different GeneratedValue 's strategy  (in ObjectDB the SEQUENCE ...

 
api-jpa

javax.persistence.SequenceGenerator

Defines a primary key generator that may be referenced by name when a generator element is specified for the GeneratedValue annotation.(Annotation of JPA)

 
forum_thread

Date field Index is corrupted due to time change

Hi, can you shed some light on why we cannot delete data from the attached DB file. A delete attempt with DB explorer results in the following exception: ... ; import javax. persistence . GeneratedValue ; import javax. persistence . GenerationType ... }   @ Id @ GeneratedValue ( strategy = GenerationType . SEQUENCE ...

 
forum_thread

Problem to use find method on an abstract Class: AbstractMethodError is thrown

Hi, I'm using JBoss AS 7 WildFly with ObjectDB installed as a module ( also Java 7, Eclipse Juno) In my db there are objects of type SentenceStatement which inherit from type LogicalObject  When I use find method mentioning SentenceStatement everything works just fine but when I use this method mentioning LogicalObject I get AbstractMethodError Please see services.Tester class with the 2 options for a better ease    this is the stack trace when I try to find LogicalObject: ... extends A { @ Id @ GeneratedValue Long id ;   @ Override ...

 
forum_thread

Mismatch client-server protocol prefix

Hello! We migrated one of our legacy webservices to Spring Boot/Spring MVC. Now i have a strange problem. At first the app runs perfectly for a couple of hours. After that it stops working and I get the following exception: ... field is annotated with: @ Id @ GeneratedValue public Long getId ( ) { ...

 
issue

Dynamic Metadata (JDO 3.0)

JDO 3 introduces the ability to specify metadata of persistable types dynamically. ObjectDB 2 supports specifying metadata by: JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e.g. package.jdo) JDO Annotations All these... annotations, including @Entity, @Embeddable, @NamedQuery, @GeneratedValue, etc. See JavaDoc Reference Page... JDO XML ...

 
api-jpa

javax.persistence.Id

Specifies the primary key of an entity.(Annotation of JPA)

 
api-jpa

javax.persistence.GenerationType

Defines the types of primary key generation strategies.(Enum of JPA)

 
tutorial

Step 2: Define a JPA Entity Class

Explains how to define a JPA entity class in a NetBeans Web Application.... . Entity ; import javax. persistence . GeneratedValue ; import javax. persistence . Id ; ... = 1L ;   // Persistent Fields: @Id @GeneratedValue Long id ; private String name ; private ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in a NetBeans Spring MVC web application project.... . Entity ; import javax. persistence . GeneratedValue ; import javax. persistence . Id ; ... = 1L ;   // Persistent Fields: @Id @GeneratedValue Long id ; private String name ; private ...