public class EntityNotFoundException extends PersistenceException
EntityManager.getReference(Class,Object)
is accessed but the entity does not exist. Also thrown when
EntityManager.refresh(Object) is called
and the object no longer exists in the database. The
current transaction, if one is active, will be marked for rollback.EntityManager.getReference(Class,Object),
EntityManager.refresh(Object),
序列化表格| 构造器和说明 |
|---|
EntityNotFoundException()
Constructs a new
EntityNotFoundException exception
with null as its detail message. |
EntityNotFoundException(String message)
Constructs a new
EntityNotFoundException exception
with the specified detail message. |
public EntityNotFoundException()
EntityNotFoundException exception
with null as its detail message.public EntityNotFoundException(String message)
EntityNotFoundException exception
with the specified detail message.message - the detail message.Copyright © 2016. All rights reserved.