top of page

Commonly Use Hibernate Annotation.

Writer's picture: patelbhargav808patelbhargav808

@Entity - Use to mark any class as Entity.

@Table - Use to change table details.

@Id - use to mark column in id(primary key).

@GeneratedValue - hibernate will automatically generate value for using internal sequence.

@column - can be used to specify column mapping. for example, to change the column name in the associated table in the database.

@Trensient - this tells hibernate not to save this field.

@Temporal - @Temporal over a date field tells hibernate the format in which data need to be saved.

@Lob - @Lob tells hibernate that this is a large object, not a simple object.

 
 
 

Recent Posts

See All

Comentários


bottom of page