ObjectDB Database Search
151-200 of 200 resultsDuplicate Entity class names causes Exception in Query I have two Entities which have the same class name but reside in different packages, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... ( name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey | |
Entity name"). Instead I see following: 2 .1. Why? Is the @Entity( name ="RESULT") ignored by ObjectDB? 2 . 2 ... Hello !! I am new in JPA / ObjectDB development and I have many questions: 2 . Object creation I created a class named EBResult which looks like this: @Entity( name ="RESULT") public class | |
Is named-query supported in orm.xml-type. 2 .4.a: Invalid content was found starting with element ' named -query'. One of '{"http://java ... I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in ... }' is expected. Does ObjectDB support externalised named queries, if so what's the recommended way | |
@Column( name = "columnName") doesn't work @GeneratedValue @Column( name = "KEY_ID") private long id; private Long timestamp; @ManyToOne @Column( name = "KEY_DESCRIPTOR") private AfwKeyDescriptor keyDescriptor; @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) @Column( name = "DATA_ITEMS" ) private List dataItems; @OneToOne(fetch | |
Getting a list of all the entity class names I was wondering if there is any way to get a list of the entity names in the database? dmoshal ... the manual. support Support Actually, there is a simpler way to get the class names (in one line of code ... (PersistenceManager.class)); This method remained from ObjectDB 1.x, but in JPA 2 applications the JPA Metamodel API | |
How best to unbind all names? way, by adding a ' name ' field, which may be set as a primary key or as a unique index ... for this was I presumed that it would provide fast lookup, and the bookmark name I use is in fact simply ... retrieval query by PK should be created? Thanks. experimenter Francis Cox ObjectDB 2 .x free edition | |
javax.persistence.PersistenceException: No Persistence provider for EntityManager named in Karaf 4.0.7 and OSGi DS test.persistence.PersistenceException: No Persistence provider for EntityManager named objectdb ... to deploy to Karaf 2 ) the objectdb bundle I use 3) a zip file containing the source project (Eclipse ... the context class loader. Setting the context class loader, as suggested in # 2 above, is a known | |
A distinguished Name for server or explorer is good for maintaining! stop it, I get this message: ./server.sh stop & [1] 8443 [ObjectDB 2 . 2 .8] Failed to connect to server 127.0.0.1:6136 (Connection timed out) (error 522) So, I need a name to kill | |
com.objectdb.o.UserException: Ambiguous entity name I get the com.objectdb.o.UserException: Ambiguous entity name A former embeddable class seems to be similar to a new entity class. However, I removed the embeddable class from all of my classes ... it was related to / nested in? itsme Martin Petzold This problem was solved in version 2 .8. 2 . The exception does | |
JDBC Driver name Hello there, I am probably misunderstanding but here I go, How can configure the jdbc driver name for a grails application, the one in DataSource.groovy, in the same way for postgresql to: org ... ) for Java with built in JPA 2 support. from objectdb.com ( https://www.objectdb.com/java/jpa | |
jakarta.persistence.EmbeddedId empName, Date birthDay) {} Example 2 : @Embeddable public class DependentId { String name ... { // default column name for " name " attribute is overridden @AttributeOverride( name = " name ", column = @Column( name = "dep_ name ")) @EmbeddedId DependentId id; ... @MapsId("empPK") @ManyToOne Employee emp | |
javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName;Glassfish3.0.1 objectdb- 2 . 2 .5_10 JavaEE6 web app The error reports as: javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft ... the h:forms anyway, and they both perform a full submit. There is nothing wrong with the property name | |
jakarta.persistence.Table is specified for an entity class, the default values apply. Example: @Entity @Table( name = "CUST", schema ... MappedSuperclass or Embeddable . Since: Jakarta Persistence (JPA) 1.0 Annotation Elements String name (Optional) The name of the table. Defaults to the entity name . Default: "" Since: Jakarta | |
jakarta.persistence.criteria.Subquery. A subquery has an expression as its selection item. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression | |
jakarta.persistence.PersistenceUnitUtil Persistence (JPA) 2 .0 Public Instance Methods Class getClass ( T entity ) Return the concrete entity ... cannot be loaded from the database. Since: Jakarta Persistence (JPA) 3. 2 Object getIdentifier ( Object ... is found not to be an entity. Since: Jakarta Persistence (JPA) 3. 2 boolean isInstance ( Object entity | |
jakarta.persistence.GeneratedValue") @Column( name = "CUST_ID") public Long getId() { return id; } Example 2 : @Id @GeneratedValue(strategy = TABLE, generator = "CUST_GEN") @Column( name = "CUST_ID") Long id; See Also: GenerationType Id ... ) The name of the primary key generator to use, as specified by the SequenceGenerator or TableGenerator | |
Setting and Tuning of JPA Queries.persistence.query.timeout", 6000); For a named query definition, use the hints element: @NamedQuery ( name ="Country.findAll", query ="SELECT c FROM Country c", hints ={@ QueryHint ( name ="jakarta | |
Index Definition; // unique @Index ( name ="i3") int indexedField3; @Unique Integer indexedField4; // unique @Unique ( name ="u2") Date indexedField5; // unique } The @Unique annotation defines a unique index ... . The optional name attribute has no specific function but might appear in the ObjectDB Explorer and in log | |
Obtaining a JPA Database Connection"); The createEntityManagerFactory static method expects a persistence unit name as an argument ... to be a database URL rather than a persistence unit name . The $objectdb variable represents the ObjectDB home ... within an active transaction. Given an EntityManager instance named em , you can begin a transaction: em | |
Named Query Exception [ObjectDB 2 .4.6_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.6.0 ... ) at org.junit.runners.ParentRunner$ 2 .evaluate(ParentRunner.java:222) at org.junit.internal.runners ... The error message was fixed in build 2 .4.6_10. Thank you for this report. support Support | |
jakarta.persistence.criteria.Predicate. Since: Jakarta Persistence (JPA) 2 .0 The Logical Operators in JPQL and Criteria API article explains how to use Predicate . Public Instance Methods Selection alias ( String name ) Assigns an alias ... selection item. Inherited from Selection Parameters: name - alias Returns: selection item. Since: Jakarta | |
jakarta.persistence.criteria.Expression. Since: Jakarta Persistence (JPA) 2 .0 The JPA Query Expressions (JPQL / Criteria) article explains how to use Expression . Public Instance Methods Selection alias ( String name ) Assigns an alias ... item. Inherited from Selection Parameters: name - alias Returns: selection item. Since: Jakarta | |
jakarta.persistence.Index ::= column_ name [ASC | DESC] If neither ASC nor DESC is not specified, ASC , that is, ascending order ... CollectionTable JoinTable TableGenerator Since: Jakarta Persistence (JPA) 2 .1 Annotation Elements String name (Optional) The name of the index. Defaults to a provider-generated name . Default | |
jakarta.persistence.ManyToMany notation is the name of the respective embedded field or property. Example 1: // In Customer class: @ManyToMany @JoinTable( name = "CUST_PHONES") public Set getPhones() { return phones; } // In ... 2 : // In Customer class: @ManyToMany(targetEntity = com.acme.PhoneNumber.class) public Set | |
jakarta.persistence.DiscriminatorColumn, the name of the discriminator column defaults to "DTYPE" and the discriminator type to DiscriminatorType.STRING . Example: @Entity @Table( name = "CUST") @Inheritance(strategy = SINGLE_TABLE) @DiscriminatorColumn( name = "DISC", discriminatorType = STRING, length = 20) public class Customer | |
jakarta.persistence.StoredProcedureParameter Interfaces: Annotation Declares a parameter of a named stored procedure query. All parameters of a named stored procedure query must be declared. See Also: NamedStoredProcedureQuery ParameterMode Since: Jakarta Persistence (JPA) 2 .1 Annotation Elements String name The name of the parameter as | |
jakarta.persistence.OrderBy [, orderby_item]* orderby_item ::= [property_or_field_ name ] [ASC | DESC] If ASC or DESC is not specified, ASC ... , ordering by the primary key of the associated entity is assumed. The property or field name ... attribute. The value of each identifier used with the dot notation is the name of the respective | |
jakarta.persistence.criteria.CriteriaBuilder.Case name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters: name - alias Returns ... Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test | |
jakarta.persistence.criteria.CriteriaBuilder.In Methods Selection alias ( String name ) Assigns an alias to the selection item. Once assigned, an alias ... : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1.0 Expression as ( Class ... type. Since: Jakarta Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate | |
jakarta.persistence.criteria.CriteriaBuilder.Coalesce name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters: name - alias Returns ... Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test | |
jakarta.persistence.criteria.CriteriaBuilder.SimpleCase ( String name ) Assigns an alias to the selection item. Once assigned, an alias cannot be changed or reassigned. Returns the same selection item. Inherited from Selection Parameters: name - alias Returns ... Persistence (JPA) 3. 2 Predicate equalTo ( Expression value ) Create a predicate to test | |
queries under 2.7.6_4 significantly slower than under 2.7.6) or (p1. name = "startableState" and p1.doubleValue = 0)) 2 .7.6 takes around 4 seconds 2 .7.6_04 takes ... ; (v$ 2 . name ='feedbackState'). Step 4: Process ObjectProperty (p1) instances (for every result ... (filter(extract(v$ 2 ,type(ObjectProperty[set])),(v$ 2 .doubleValue!=13)),(v$ 2 . name ='feedbackState')) p1 | |
Numbers in JPQL and Criteria Queries. For example: MOD(11, 3) evaluates to 2 . MOD(8, 4) evaluates to 0 . The MOD function takes two integer ... function returns the square root of a specified argument. For example: SQRT(9) is evaluated to 3 SQRT( 2 ... (+) Expression sum1 = cb. sum (path, param); // 2 expressions Expression sum2 = cb. sum (path, 1000 | |
jakarta.persistence.criteria.Fetch-fetched association or attribute. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Fetch ... to the specified attribute using an inner join. Inherited from FetchParent Parameters: attributeName - name ... : IllegalArgumentException - if attribute of the given name does not exist. Since: Jakarta Persistence (JPA) 1.0 Fetch | |
jakarta.persistence.criteria.FetchParent the parent of Fetches. Since: Jakarta Persistence (JPA) 2 .0 Public Instance Methods Fetch fetch ... an inner join. Parameters: attributeName - name of the attribute for the target of the join Returns: the resulting fetch join. Throws: IllegalArgumentException - if attribute of the given name does not | |
jakarta.persistence.NamedSubgraph. It is referenced by its name from a NamedAttributeNode element of the NamedEntityGraph . See Also: NamedEntityGraph NamedAttributeNode Since: Jakarta Persistence (JPA) 2 .1 Annotation Elements String name (Required) The name of the subgraph as referenced from a NamedAttributeNode element. Since: Jakarta | |
jakarta.persistence.Parameter (JPA) 2 .0 Chapter 4 - JPA Queries (JPQL / Criteria) explains how to use Parameter . Public Instance Methods String getName () Return the parameter name , or null if the parameter is not a named parameter or no name has been assigned. Returns: parameter name . Since: Jakarta Persistence (JPA) 1.0 | |
Step 5: Add a JSP Page) and selecting New JSP ... Enter guest as the jsp file name - use exactly that case sensitive class name . The Folder should be WEB-INF (to prevent accessing the JSP directly not through Spring). Click ... content: JPA Guestbook Web Application Tutorial Name : The JSP generates the guestbook page output | |
Step 3: Add a Context Listener Class Other... Web Listener and clicking Next . The Java package name should be guest. Enter GuestListener as the class name - use exactly that case sensitive class name . Click Next and then Select All to enable | |
Step 1: Create a Java Project New Project... Select Java Java Application and click Next . Choose a Project Name (e.g. Tutorial ). The name of the Main class should be tutorial.Main . Verify that exactly this case sensitive fully qualified class name is set (you may use copy & paste). Click the Finish button to create | |
Step 3: Define an EJB Session Bean Bean and clicking Next . Enter GuestDao as the EJB class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish to create the new session bean (EJB | |
Step 5: Add a JSP Page ... Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish ... Guest Book Web Application Tutorial Name : The JSP generates the guestbook page output, which contains | |
Step 3: Define a Spring DAO Component . The package name should be guest . Enter GuestDao as the class name - use exactly that case sensitive class name . Click Finish to create the new DAO Spring component class. Now | |
Step 5: Add a JSP Page ... Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish ... Guest Book Web Application Tutorial Name : The JSP generates the guestbook page output, which contains | |
Step 5: Add a JSP Page New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish to create the new JSP file. Now ... Tutorial Name : The JSP generates the guestbook page output, which contains a simple form for signing | |
Step 5: Add a JSP Page (to prevent direct access to the JSP bypassing Spring). Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish to create the new JSP file. Now ... Tutorial Name : The JSP generates the guestbook page output, which contains a simple form for signing | |
Step 3: Add a Context Listener Class Other... Select Web Web Application Listener and click Next . Enter GuestListener as the class name - use exactly that case sensitive class name . The Java package name should be guest. Click Finish | |
Step 3: Define an EJB Session Bean node (in the [Package Explorer] window) and selecting New Class . The package name should be guest . Enter GuestDao as the class name - use exactly that case sensitive class name . Click Finish | |
Step 5: Add a JSP Page New Other... Web JSP File and clicking Next . Enter guest as the jsp file name - use exactly that case sensitive class name . Click Finish to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA Guest Book Web Application Tutorial Name : The JSP | |
Step 1: Create a Maven Web Project.objectdb.com com.objectdb objectdb 2 .8.1 org.eclipse.persistence javax.persistence 2 .1.0 javax.transaction jta 1.1 javax.servlet servlet-api 2 .5 provided javax.servlet.jsp jsp-api 2 .1 provided org ... .springframework spring-orm 3.0.5.RELEASE aopalliance aopalliance 1.0 cglib cglib 2 . 2 org.aspectj aspectjweaver |