Object
DB
Object
DB
ObjectDB
About ObjectDB
Get ObjectDB
Support
Manual
Quick Tour
Entity Classes
Using JPA
JPA Queries
Tools
and Utilities
Configuration
API
JPA
Reference
JDO
Reference
Tutorials
General JPA Tutorials
Web App JPA Tutorials
Admin
Home
»
JPA Reference
»
Annotations
»
Field Modifiers
»
Basic
»
Basic.optional - JPA annotation element
JPA Reference
Persistence
EntityManagerFactory
EntityManager
EntityTransaction
Annotations
Class Modifiers
Field Modifiers
Basic
Embedded
ElementCollection
Id
EmbeddedId
Version
Transient
Enumerated
MapKeyEnumerated
EnumType
Temporal
TemporalType
MapKeyTemporal
Relationships
Access Modes
Value Generation
Callback Methods
JPQL Queries
Java EE
Mapping (ORM)
SQL Queries
Queries
Metamodel
Miscellaneous
Exceptions
Basic.optional - JPA annotation element
Annotation Element
javax.persistence.Basic
boolean optional
(Optional) Defines whether the value of the field or property may be null. This is a hint and is disregarded for primitive types; it may be used in schema generation. If not specified, defaults to
true
.
Default value:
true
Since:
JPA 1.0
< Basic
^ Basic
Embedded >