ObjectDB Database 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 | |
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 | |
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 | |
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 | |
jakarta.persistence.MapKey when MapKey is specified and vice versa. Example 1: @Entity public class Department { ... @OneToMany ... ") public Department getDepartment() { ... } ... } Example 2: @Entity public class Department | |
jakarta.persistence.ManyToOne with the dot notation is the name of the respective embedded field or property. Example 1: @ManyToOne(optional ... getCustomer() { return customer; } Example 2: @Entity public class Employee { @Id int id; @Embedded JobInfo | |
jakarta.persistence.EmbeddedId. Relationship mappings defined within an embedded primary key type are not supported. Example 1: @Entity public ... empName, Date birthDay) {} Example 2: @Embeddable public class DependentId { String name; EmployeeId | |
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 | |
Update Entity references if we change the type of an entity. As example (like in the attached example ): We have an EntityA that have a reference to an EntityB. But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic ... example to demonstrate the scenario is attached. btc_es BTC EmbeddedSystems The example contained | |
Problem with byte arrays in JDO - internal exception; import javax.jdo.Query; import spiffy.test.model. Example ; /** * * @author steve */ public class ... (); Query query = pm.newQuery( Example .class); query.deletePersistentAll(); pm.currentTransaction().commit(); pm.currentTransaction().begin(); Example example1 = new Example (); example1.setId(1); example1 | |
Problem with byte arrays in JDO - ClassCastException.PersistenceManagerFactory; import javax.jdo.Query; import spiffy.test.model. Example ; /** * * @author steve ... ; Query query = pm.newQuery( Example .class);   ... ; Example example1 = new Example ();   | |
jakarta.persistence.Id or field. Example : @Id public Long getId() { return id; } See Also: Column GeneratedValue | |
jakarta.persistence.IdClass to be annotated. Example : @IdClass(EmployeePK.class) @Entity public class Employee { @Id String empName; @Id | |
jakarta.persistence.ForeignKey the target database for foreign key constraint creation. For example , it might be similar to the following | |
jakarta.persistence.JoinTable) using an underscore. Example : @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn(name = "CUST_ID | |
jakarta.persistence.Inheritance is used. Example : @Entity @Inheritance(strategy = JOINED) public class Customer { ... } @Entity public | |
jakarta.persistence.JoinColumns specify both name and referencedColumnName . Example : @ManyToOne @JoinColumns({ @JoinColumn(name | |
jakarta.persistence.MapKeyEnumerated, the enumerated type is assumed to be ORDINAL . Example : public enum ProjectStatus {COMPLETE, DELAYED, CANCELLED | |
jakarta.persistence.MapKeyTemporal with the ElementCollection , OneToMany , or ManyToMany annotation. Example : @OneToMany @MapKeyTemporal(DATE | |
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 | |
Inserted entities with strings as keys and indices needs more and more ram memory in comparing to primitive integers as keys and indices? See both examples . btc_es BTC EmbeddedSystems Correction. The case with strings as primary key ... and are processed faster. support Support Thank you for the clarification. The example with long keys needs round about 750 MB RAM memory. The example with string keys needs round about 1,5 GB RAM memory | |
Explorer in 2.3 to enter a Java expression into a field. For example , suppose you have a User entity with a password ... , on the other hand, is quite useful during development when I want to see examples of data, but I don't ... only interested in seeing an example of the data, rather than all of it. For #5 - I was talking | |
DB reading fails in debug mode in Eclipse of my. example .package.AnalyzeSettings using a no-arg constructor at com.objectdb.o.MSG.d(MSG.java:75) at com ... .__odbBeforeAccess(Unknown Source) at objectdb.java.util.HashMap.keySet(Unknown Source) at my. example ... to construct an instance of my. example .package.AnalyzeSettings using a no-arg constructor at com | |
General Performance Issues Illustrated with a Specific Method in the future if you follow the posting instruction and post minimal examples (for example ... this thread now and start again with a clean thread and a minimal runnable example . See posting instructions and examples of other recent threads. Post again after isolating an issue to the minimum possible | |
jakarta.persistence.criteria.Path.get(String) to avoid the use of Path variables. For example : CriteriaQuery q = cb.createQuery(Person.class); Root | |
Extended mapping-definitions to a relational DB, for example with Hibernate. By default every entity of the real world ... . A MetaClass is a simple Java class, which mimics it behavior, for example it has an attribute ... -attribute of MetaClass distinguishes the real-world-class. Example : cat in our wolrd - instance | |
combined index not used can be embedded at the end of the query text in the format [[name=value]]. For example : SELECT ... there is a significant waiting time in the above functionality queries are significantly slow, example ... -Georg Zwicker just to make clear: all queries are slow, not only the above example hgzwicker Hans | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct) and servlet + query example . The reason the relationships of the entities should load ... just point out something screamingly obvious. Your own JavaEE example has a single entity class ... am. Would you please demonstrate to me, either in my code or using a better example than Guest, the magic moment | |
version 2.4.5+ with GlassFish 3.1.2, errors when runs application. Version 2.4.4 worked but not 2.4.5 or later) at luc. example .__EJB31_Generated__UserFacade__Intf____Bean__.getAll(Unknown Source) at sun.reflect ... .ProxyMethodHandler.invoke(ProxyMethodHandler.java:105) at luc. example .UserFacade$Proxy$_$$_Weld$Proxy$.getAll(UserFacade$Proxy$_$$_Weld$Proxy$.java) at luc. example .UserController.getUserList(UserController.java |