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.

16 views0 comments

Recent Posts

See All

Battle of the Backends: Java vs Node.js

Comparing Java and Node.js involves contrasting two distinct platforms commonly used in backend development. Here’s a breakdown of their...

Comments


bottom of page