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.
EclipseLink/UserGuide/JPA/Basic JPA Development/Mapping/Basic Mappings/Column
< EclipseLink | UserGuide | JPA | Basic JPA Development | Mapping | Basic Mappings
Revision as of 13:43, 14 February 2011 by Ben.gelernter.oracle.com (Talk | contribs)
EclipseLink | |
Website | |
Download | |
Community | |
Mailing List • Forums • IRC • mattermost | |
Issues | |
Open • Help Wanted • Bug 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.
.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 ....
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; }