@Column annotation is used to customize the column. By
using @Column annotation, you can perform below things.
a.
Specify the column name of a table.
b.
Make this column as unique key
c.
Specify whether this column takes nullable
values or not
d.
Set whether the column is included in SQL
INSERT statements generated by the persistence provider.
e.
Set whether the column is included in SQL
UPDATE statements generated by the persistence provider.
f.
Set the name of the table that contains the
column.
g.
Specify the length of the column
h.
Specify the name of the table that contains
the column.
i.
Specify the precision for a decimal column
j.
Specify the scale for a decimal column
k.
Set the SQL fragment that is used when
generating the DDL for the column.
You can learn more about these in my later posts.
No comments:
Post a Comment