About null

issue

NPE when doing a find()

I added a simple User entity during Tomcat startup: class User {  @Id @GeneratedValue private long id; @Basic(optional = false) private String firstName; private String middleName; @Basic(optional = false) private String lastName; } Everything works fine until I restart the server, which does a em.find(User.class, 1).  Then this happens: ... java.lang.NullPointerException: null java.lang.NullPointerException at ...

 
forum_thread

Version 2.2.7 build 7/8 issue

Hi all, I have problems with builds 7 and 8 when trying to sort entities with mappedBy and my own method in query. This query "SELECT c FROM Customer c order by c.getNormalizedName()" returns List with null objects! With builds 6 and 5 works it correctly. Removing mappedBy from @OneToOne(mappedBy = "address") also helps. My code: ... c order by c.getNormalizedName()" returns List with null objects! With builds 6 and 5 works it correctly. Removing mappedBy ...

 
api-jpa

getAlias()

Return the alias assigned to the tuple element or null, if no alias has been assigned.(Method of javax.persistence.TupleElement)

 
api-jpa

javax.persistence.InheritanceType

Defines inheritance strategy options.(Enum of JPA)

 
api-jdo

valueOf(name)

Returns the enum constant of this type with the specified name.(Static Method of javax.jdo.ObjectState)

 
doc

Exception(message, cause)

Constructs a new exception with the specified detail message and cause.(Constructor of java.lang.Exception)

 
api-jpa

RollbackException()

Constructs a new RollbackException exception with null as its detail message.(Constructor of javax.persistence.RollbackException)

 
api-jpa

NoResultException()

Constructs a new NoResultException exception with null as its detail message.(Constructor of javax.persistence.NoResultException)

 
api-jdo

nonBinaryCompatibleIs(pc, sibr)

Determine the state of a non-binary-compatible instance.(Method of javax.jdo.spi.JDOImplHelper)

 
api-jdo

getPersistentInstance()

Returns the persistent instance involved in the event.(Method of javax.jdo.listener.InstanceLifecycleEvent)