ObjectDB ObjectDB

Internal Website Search

171-180 of 200 resultsRefresh
64

Duplicate 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 ... .... @Entity @NamedQueries({ @NamedQuery(name = "objdbTest.Singleton.getItem", query = "SELECT o
62

Package name for persisted entities

Hi, I have a question about package name and searching for entities. As for now we were using ... . 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
61

Entity name

created a class named EBResult which looks like this: @Entity(name="RESULT") public class EBResult ... 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
61

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 the entity classes, for example: <named-query name= "DataValue.deleteByCapabilityAndCreationtime ... and d.creationtime &lt;= :creationtime </query> </named-query
60

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
12

Database Connection using JPA

the database file. Connection URL The createEntityManagerFactory method takes as an argument a name ... .objectdb is considered by ObjectDB to be a database URL rather than as a persistence unit name. To use ... a prefix (e.g. "objectdb:my.odb") is optional if the database file name extension is odb or objectdb
12

Paths and Types in JPQL and Criteria API

.capital.name is a nested path expression that continues from the Capital entity object to its name ... must contain a persistent field (or property) with a matching name. The path expression ... through a NULL value The following query retrieves country names with their capital city names: SELECT
12

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft ... anyway, and they both perform a full submit. There is nothing wrong with the property name ... the names of persistent property get and set methods by adding __odbHidden_ prefix - in order to add new
2

Step 2: Define a JPA Entity Class

) and selecting New > Class. Enter guest as the package name - use exactly that case sensitive package name. Enter Guest as the class name - use exactly that case sensitive class name. Click Finish ... @GeneratedValue Long id; private String name; private Date signingDate
2

Step 2: Define a JPA Entity Class

) and selecting New > Java Class... Enter Guest as the class name - use exactly that case sensitive class name. Enter guest as the package name - use exactly that case sensitive package name. Click Finish ... ; // Persistent Fields: @Id @GeneratedValue Long id; private String name; private

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support