Home » Search

About name

181-190 of 200Refresh
Forum
13

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
Forum
12

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
Forum
12

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
Forum
12

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 <= :creationtime named-query
JPA Doc
12

javax.persistence.TypedQuery

Since: JPA 2.0 Parameter getParameter(String name) Get the parameter object corresponding to the declared parameter of the given name. Get the parameter object corresponding to the declared parameter of the given name. This method is not required to be supported for native queries. Parameters: name
Manual
12

General Settings and Logging

" /> name="*" level="info" /> The element name odb
Manual
12

JPA Metamodel API

strAttr1 = managedType.getAttribute("name"); // Get a specific attribute - excluding inherited: Attribute strAttr2 = managedType.getDeclaredAttribute("name ... only one additional method for getting the entity name: String entityName = entityType.getName(); Attribute
Tutorial
12

Step 1: Create a Maven Web Project

Name (e.g. Guestbook) and select Java EE 5. Enter Maven Group Id (e.g. com.objectdb.tutorial.spring ... war 1.0 <name>Guestbookname> http ... .sourceEncoding>      objectdb    <name>ObjectDB
Tutorial
12

Step 5: Add a JSP Page

> 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 ... method="POST" action="GuestServlet"> Name: name="name
Tutorial
12

Step 5: Add a JSP Page

... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish ... "> Name: name="name" />