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 | |
Package name for persisted entities Hi, I have a question about package name and searching for entities. As for now we were using ... with all entities. Unfortunately some of the names are the same for entities: - homplex.model.dbobject.Inspiration ... specify full name with package in persistence.xml and set "exclude-unlisted-classes" for true, ODB | |
Entity name creation I created a class named EBResult which looks like this: @Entity( name ="RESULT") public class ... library) I expected to see an object named "RESULT" due to class annotation @Entity( name ="RESULT"). Instead I see following: 2.1. Why? Is the @Entity( name ="RESULT") ignored by ObjectDB? 2.2 | |
The attribute column name (EXCEPTION) is a reserved SQL-99 keyword. How do I fix this error/warning that Netbeans gives me? "The attribute column name (EXCEPTION ... the database that its name conflicts with SQL. This is not an issue with ObjectDB ... annotation that will map the name of the Java field to another name in the database: @Column( name | |
Is named-query supported in orm.xml I prefer to keep custom JPQL named queries in an external file, e.g. orm.xml, rather than in ... -type.2.4.a: Invalid content was found starting with element ' named -query'. One of '{"http://java ... }' 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 ... it to get entity names or class names - which is not the same). support Support | |
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 | |
Ambiguous entity name after package renaming I maintain an open source Java Swing application with 4 (ObjectDB) classes within 1 package. I renamed the package. And now I get a Ambiguous entity name PersistenceException error with reference to both the entity names (old and new) I now have 8 entities in de Explorer (4 old and 4 new). The new ones are empty. I tried to use schema update method: | |
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 | |
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.postgresql.Driver thanks Jim jminiko Jean-Marc INIKO Hello, I think it is not feasible as | |
A distinguished Name for server or explorer is good for maintaining! 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. Still I get this error and in the explorer I can find an entry for this embeddable class | |
JPA Lifecycle Events and take no arguments. They can have any name and any access level ( public , protected , package , or | |
JPA Attributes Annotations as map keys: Specifies whether an enum should be persisted by its ordinal value or its string name | |
JPA Metamodel Types superclasses. Represents an @Entity class in the domain model, providing access to the entity's name | |
JPA Query Structure (JPQL / Criteria) ). The exceptions, where JPQL is case-sensitive, include Java source elements such as the names of entity classes | |
Retrieving JPA Entities a persistent field in a hollow object, such as the manager 's name in the preceding example, triggers | |
JPA Queries to ObjectDB). Interface for declaring and handling named or positional query parameters. Use | |
SQL Queries Annotations the following annotations: Specifies a named native SQL query using the underlying database's specific SQL | |
JPA Metamodel and Graphs to retrieve entity and attribute information by class or name , similar to the reflection API in Java | |
Chapter 6 - Configuration to the directory that contains objectdb.jar , with one exception: if that directory is named bin | |
JPA Annotations defining named entity graphs for eager loading strategies. Field level configuration Configure | |
UPDATE SET Queries in JPA/JPQL without an explicit variable name ) for iteration. Multiple variables and JOIN operations are not supported | |
ObjectDB Object Database Features API . Static definition ( named queries ) in annotations (@NamedQuery) and XML. Query parameters | |
Database Explorer, specify a name , and click OK . You can access bookmarked entities from the Database window | |
Chapter 4 - JPA Queries (JPQL / Criteria) JPA. The first section describes the JPA API for running dynamic and static ( named ) queries | |
SSL Configuration includes general details (such as a company name ), an RSA private key, and its corresponding public key | |
jakarta.persistence.SecondaryTable, and have the same names and types as the referenced primary key columns of the primary table. Example 1: Single secondary table with a single primary key column. @Entity @Table( name = "CUSTOMER") @SecondaryTable( name = "CUST_DETAIL", pkJoinColumns = @PrimaryKeyJoinColumn( name = "CUST_ID")) public class Customer | |
jakarta.persistence.NamedStoredProcedureQuery Implemented Interfaces: Annotation Target: Type Declares and names a stored procedure, its parameters ... superclass. The name element is the name that is passed as an argument to the EntityManager.createNamedStoredProcedureQuery method to create an executable StoredProcedureQuery object. Names are scoped | |
jakarta.persistence.NamedQuery: Annotation Target: Type Declares a named query written in the Jakarta Persistence query language. Query names are scoped to the persistence unit. A named query may be executed by calling EntityManager.createNamedQuery . The following is an example of the definition of a named query written in | |
jakarta.persistence.SecondaryTables secondary tables assuming primary key columns are named the same in all tables. @Entity @Table( name = "EMPLOYEE") @SecondaryTables({ @SecondaryTable( name = "EMP_DETAIL"), @SecondaryTable( name = "EMP_HIST")}) public class Employee { ... } Example 2: Multiple secondary tables with differently named | |
jakarta.persistence.SqlResultSetMapping.quantity AS order_quantity, " + "o.item AS order_item, " + "i. name AS item_ name , " + "FROM Order o ... "); @SqlResultSetMapping( name = "OrderResults", entities = { @EntityResult( entityClass = com.acme.Order.class, fields = { @FieldResult( name = "id", column = "order_id"), @FieldResult( name = "quantity", column = "order | |
jakarta.persistence.NamedEntityGraph Interfaces: Annotation Target: Type Defines a named entity graph . This annotation must be applied ... . A reference to a named entity graph may be obtained by calling EntityManager.getEntityGraph ... name (Optional) The name used to identify the entity graph in calls to EntityManager.getEntityGraph | |
javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName: 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 ... Enhancer modifies the names of persistent property get and set methods by adding __odbHidden | |
Weird issue with variable naming hi, We've hit again against troubles with the variable naming when trying to get the query string ... and order by. Removing the addition of order stuff solves the issue of double naming though doesn't help us without ordering. The issue is that the name of the root variable is $1 as well as the name | |
Issues with JDO Casting & Full Qualified Names Hi, As I've feared.. Fully Qualified Names in casting not working, throws an identifier expected ... public static class EmbeddedA extends EmbeddedBase { String name = "Alex"; } @Embeddable ... EmbeddedBase { String name = "Alex"; } @Embeddable class EmbeddedB extends | |
jakarta.persistence.JoinTable is missing, the default values of the annotation elements apply. The name of the join table is assumed to be the table names of the associated primary tables concatenated together (owning side first) using an underscore. Example: @JoinTable( name = "CUST_PHONE", joinColumns = @JoinColumn( name = "CUST_ID | |
jakarta.persistence.ConstructorResult is retrieved for the constructed object. Example: Query q = em.createNativeQuery( "SELECT c.id, c. name ... " + "WHERE o.cid = c.id " + "GROUP BY c.id, c. name ", "CustomerDetailsResult"); @SqlResultSetMapping( name ... , columns = { @ColumnResult( name = "id"), @ColumnResult( name = " name "), @ColumnResult( name | |
Spring MVC JPA Tutorial - IntelliJ Project , click the + icon and select Tomcat Server Local . Enter a name (e.g. Guestbook | |
Step 1: Create a Maven Web Project We start by creating a new Maven web project in NetBeans: Open the [New Project] dialog box, e.g. by using File New Project... Select Maven Maven Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and select Java EE 5. Enter Maven Group Id (e.g. com.objectdb.tutorial.spring | |
Step 1: Create a Java EE 6 Web Project We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target | |
Step 3: Create an ObjectDB Data Source of available data source types. Enter data source name (e.g. ObjectDB Points ) and click Next . Specify | |
Step 1: Create a Java EE Web Project We start by creating a new Java EE 6 Web Application project in NetBeans: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and click Next . Select GlassFish Server 3 (or above)  | |
Step 1: Create a Web Project We start by creating a new Eclipse Dynamic Web Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose a Project Name (e.g. Guestbook ). Select Apache Tomcat v6.0 as the Target runtime. Note: You may have to add Tomcat 6 | |
Step 1: Create a Java Project Project] dialog box: Select Java Project and click Next . Choose a Project Name (e.g. Tutorial | |
JPA Web App Tutorial - IntelliJ Project and select Tomcat Server Local . Enter a name (e.g. Guestbook ) at the top of the dialog box. In | |
Step 4: Create an ObjectDB Data Set Points ). Enter a data set name (e.g. Points by X ) and click Next . The database in | |
Step 1: Create a Web Project We start by creating a new NetBeans Web Application Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Java Web Web Application and click Next . Choose a Project Name (e.g. Guestbook ) and click Next . Select Apache Tomcat 6 as the Server. Note | |
Java EE 6 JPA Tutorial - IntelliJ Project . Enter a name (e.g. Guestbook ) at the top of the dialog box. In the Deployment tab select  |