Top Description Methods
javax.persistence

public @Interface Entity

extends Annotation
Annotations
@Documented
@Target:TYPE
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention, .Documented

Specifies that the class is an entity. This annotation is applied to the entity class.
Since
Java Persistence 1.0

Method Summary

Modifier and TypeMethod and Description
public String
name()

(Optional) The entity name.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

nameback to summary
public String name()

(Optional) The entity name. Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved literal in the Java Persistence query language.