ObjectDB Database Search
101-150 of 200 resultsUserException: 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 | |
jakarta.persistence.MapsId specified. In this example , the parent entity has simple primary key: @Entity public class Employee | |
jakarta.persistence.MappedSuperclass. Example : Concrete class as a mapped superclass @MappedSuperclass public class Employee { @Id | |
jakarta.persistence.ConstructorResult is retrieved for the constructed object. Example : Query q = em.createNativeQuery( "SELECT c.id, c.name | |
jakarta.persistence.ColumnResult can be included in the query result by specifying this annotation in the metadata. Example : Query q = em | |
jakarta.persistence.Embedded may be used to override mappings declared or defaulted by the embeddable class. Example : @Embedded | |
jakarta.persistence.DiscriminatorColumn to DiscriminatorType.STRING . Example : @Entity @Table(name = "CUST") @Inheritance(strategy = SINGLE_TABLE | |
jakarta.persistence.ElementCollection. The CollectionTable annotation specifies a mapping to a database table. Example : @Entity public class | |
jakarta.persistence.DiscriminatorValue, should be specified for each concrete entity class in the hierarchy. Example : @Entity @Table(name = "CUST | |
jakarta.persistence.EntityResult. Example : Query q = em.createNativeQuery( "SELECT o.id, o.quantity, o.item, " + "i.id, i.name, i | |
jakarta.persistence.FetchType is permitted to eagerly fetch data for which the LAZY strategy hint has been specified. Example | |
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 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 = cb | |
jakarta.persistence.criteria.SetJoin the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from | |
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 the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root p = q | |
jakarta.persistence.criteria.From 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 |