Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings/Column


Eclipselink-logo.gif
EclipseLink
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse Source


THIS PAGE IS IN PROGRESS...

@Column

Use the Column annotation to specify a mapped column for a persistent property or field.

.
Elug javaspec icon.gif

For more information, see Section 11.1.9 "Column Annotation" in the JPA Specification.


The following example shows how to use the @Column annotation to ....


The @Column annotation has the following attributes:
Attribute Description Default Required?
name feh feh feh
unique feh feh feh
nullable feh feh feh
insertable feh feh feh
updatable feh feh feh
columnDefinition feh feh feh
table feh feh feh
length feh feh feh
precision feh feh feh

Usage of the @Column Annotation

@Column(name="ORDER_COST", updatable=false, precision=12, scale=2)
public BigDecimal getCost() { return cost; }

Eclipselink-logo.gif
Version: DRAFT
Other versions...

Back to the top