About name

181-190 of 200Refresh
Forum
11

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
11

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
11

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
Issue
11

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

: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft ... . There is nothing wrong with the property name 'widthPxSideBarLeft', and I think this is a genuine ObjectDB problem ... Enhancer modifies the names of persistent property get and set methods by adding __odbHidden_ prefix
Forum
11

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) is a reserved SQL-99 keyword." This warning indicates mapping to a field in the database that its name ... the name of the Java field to another name in the database: @Column(name="exceptionText") private
JPA Doc
11

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
Result
11

Posting to ObjectDB Website - Important Instructions

();     }     @Entity     public static class MyEntity {         private String name;         MyEntity(String name) {             this.name = name;         }         @Override         public String toString() {             return name;         }     } } Note: If you are using NetBeans please ignore
Tutorial
11

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" />
Tutorial
11

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
11

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 replace the content ... "> Name: name="name" />