The largest Interview Solution Library on the web


Hibernate Tutorials/
« Previous | 1 | 2 | 3 | Next »
The @Column annotation is used to specify the details of the column to which a field or property will be mapped. You can use column annotation with the following most commonly used attributes:
  • name attribute permits the name of the column to be explicitly specified.
  • length attribute permits the size of the column used to map a value particularly for a String value.
  • nullable attribute permits the column to be marked NOT NULL when the schema is generated.
  • unique attribute permits the column to be marked as containing only unique values.
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com