Internal Website Search
51-100 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 | |
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 exampleGroovy JPA example | |
Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1Issue deploying J6EE/Eclipse/Glassfish example to TomEE 1.5.1 | |
Apache License, Version 2.0, January 2004 indicated by a copyright notice that is included in or attached to the work (an example is provided | |
Server Configuration to the data path. For example , "objectdb://localhost/my/db.odb" refers to a database file db.odb in | |
Storing JPA Entity Objects { : @OneToOne ( cascade = CascadeType . PERSIST ) private Address address; : } In the example | |
Date and Time in JPQL and Criteria Queries , HOUR , MINUTE and SECOND . For example : YEAR({d '2011-12-31'}) is evaluated to 2011 . MONTH({d | |
Logical Operators in JPQL and Criteria API expressions are represented in criteria queries by Expression and descendant interfaces. For example | |
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 a hyphen (-) to indicate a range. For example , a value "192.18.0.0-192.18.194.255,127.0.0.1" allows | |
javax.persistence.Convert override a conversion mapping for an inherited basic or embedded attribute. Example 1: Convert a basic ... ) boolean fullTime; ... } Example 2: Auto-apply conversion of a basic attribute @Converter(autoApply=true ... ; } Example 3: Disable conversion in the presence of an autoapply converter @Convert(disableConversion | |
javax.persistence.MapKeyClass and vice versa. Example 1: @Entity public class Item { @Id int id; ... @ElementCollection ... ... } Example 2: // MapKeyClass and target type of relationship can be defaulted @Entity public class Item { @Id int id; ... @ElementCollection Map images; ... } Example 3: @Entity public class Company | |
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 | |
javax.persistence.ManyToMany of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany @JoinTable(name="CUST ... ="phones") public Set getCustomers() { return customers; } Example 2: // In Customer class: @ManyToMany ... () { return customers; } Example 3: // In Customer class: @ManyToMany @JoinTable(name="CUST_PHONE | |
javax.persistence.OrderBy when an order column is specified. Example 1: @Entity public class Course { ... @ManyToMany @OrderBy("lastname ASC") public List getStudents() {...}; ... } Example 2: @Entity public class Student ... getCourses() {...}; ... } Example 3: @Entity public class Person { ... @ElementCollection @OrderBy | |
javax.persistence.MapKeyJoinColumn annotation is specified, a single join column is assumed and the default values apply. Example 1: @Entity ... ")) @MapKeyJoinColumn(name="DIVISION") Map organization; } Example 2: @Entity public class ... id; String title; ... } Example 3: @Entity public class Student { @Id int studentId; ... @ManyToMany | |
javax.persistence.OneToOne with the dot notation is the name of the respective embedded field or property. Example 1 ... ="customerRecord") public Customer getCustomer() { return customer; } Example 2: One-to-one association ... ; ... } // On EmployeeInfo class: @Entity public class EmployeeInfo { @Id Integer id; ... } Example 3 | |
javax.persistence.OneToMany and the orphanRemoval element apply to the map value. Example 1: One-to-Many association using generics // In ... () { return customer; } Example 2: One-to-Many association without using generics // In Customer ... ) public Customer getCustomer() { return customer; } Example 3: Unidirectional One-to-Many association | |
javax.persistence.Column values apply. Example 1: @Column(name="DESC", nullable=false, length=512) public String getDescription() { return description; } Example 2: @Column(name="DESC", columnDefinition="CLOB NOT NULL", table="EMP_DETAIL") @Lob public String getDescription() { return description; } Example 3: @Column(name="ORDER | |
javax.persistence.AttributeOverride. If AttributeOverride is not specified, the column is mapped the same as in the original mapping. Example 1 ... () { ... } public void setHourlyWage(Float wage) { ... } } Example 2: @Embeddable public class Address ... .zip", column=@Column(name="ADDR_ZIP")) }) @Embedded protected Address address; ... } Example 3 | |
javax.persistence.Embeddable of an embeddable class. Example 1: @Embeddable public class EmploymentPeriod { @Temporal(DATE) java.util.Date startDate; @Temporal(DATE) java.util.Date endDate; ... } Example 2: @Embeddable public ... ; ... } Example 3: @Embeddable public class Address { protected String street; protected String city | |
javax.persistence.NamedQuery. The NamedQuery annotation can be applied to an entity or mapped superclass. The following is an example ... is an example of the use of a named query: @PersistenceContext public EntityManager em; ... customers | |
javax.persistence.Lob and character-based types defaults to Blob. Example 1: @Lob @Basic(fetch=LAZY) @Column(name="REPORT") protected String report; Example 2: @Lob @Basic(fetch=LAZY) @Column(name="EMP_PIC | |
javax.persistence.TableGenerator (across all generator types). Example 1: @Entity public class Employee { ... @TableGenerator( name="empGen ... ", allocationSize=1) @Id @GeneratedValue(strategy=TABLE, generator="empGen") int id; ... } Example 2 | |
javax.persistence.AssociationOverride to override the mapping of the join table and/or its join columns. Example 1: Overriding ... PartTimeEmployee extends Employee { ... } Example 2: Overriding the mapping for phoneNumbers defined | |
javax.persistence.MapKey. Example 1: @Entity public class Department { ... @OneToMany(mappedBy="department") @MapKey // map key ... () { ... } ... } Example 2: @Entity public class Department { ... @OneToMany(mappedBy="department") @MapKey | |
javax.persistence.ManyToOne with the dot notation is the name of the respective embedded field or property. Example 1: @ManyToOne ... getCustomer() { return customer; } Example 2: @Entity public class Employee { @Id int id; @Embedded JobInfo | |
JDO Predefined ID Classes but should not be used as the type of a primary key field in a persistence capable class. For example | |
[ODB1] Chapter 1 - About ObjectDB database (for example , as a result of special customer needs or requests) can be done without modifying | |
javax.jdo.spi.PersistenceCapable the runtime state of instances. For example , an application can discover whether the instance is persistent ... manager for each key field in the ObjectId. For example , an ObjectId class that has three key fields ... key field in the ObjectId. For example , an ObjectId class that has three key fields (int id, String | |
javax.jdo.annotations.Persistent, for example relationships with multiple column foreign keys. Since: JDO 2.1 String customValueStrategy ... . For example , "line.point1.x" refers to the member x in class Point that is embedded as member point1 in class ... that is stored in the member. For example , the declared member type might be an interface type |