Skip to content

Spring Framework Blog

Menu
  • Home
  • Spring
  • Spring Boot
  • About
Menu

JPA Annotations

Posted on November 16, 2023June 3, 2024 by Armando Marques

JPA @Column annotation properties

Along with the name property, the JPA @Column annotation can further customize the way a field maps to the database, through the use of the following properties:

  • updatable :: boolean – whether the column can be used with SQL UPDATE statements.
  • unique :: boolean – whether the column represents a unique database key.
  • table :: String – the name of the database table that hosts the JPA mapped column.
  • precision :: int – decimal precision for the column.
  • nullable :: boolean – whether the column can contain null values.
  • length :: int – how many characters the database column must support.
  • insertable :: boolean – whether the column should allow SQL INSERT statements.
  • columnDefinition :: String – the name of an SQL fragment that contains DDL for the column.

https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Hibernate-JPA-Column-Mapping-Basic-Transient-Annotation-MySQL-Database-Persistence

  • Spring
  • Documentation
  • References
  • Toc
  • Books
  • Certification
  • AOP
  • Config
  • Java
  • Java core
  • JDBC
  • JPA
  • Rest
  • Security
  • Spring
  • Spring Boot
  • Spring Core
  • Spring Data
  • Spring MVC
  • Spring Rest
  • Spring Security
  • Tests
  • Transactions
  • Uncategorized

Recent Posts

  • Spring Annotations
  • Java Tests
  • Java operators
  • Java versions
  • Java Oracle Licenses
  • Configuration properties
  • MockMvc
  • Spring Security III
  • MVC Controller Method Params
  • JPA Methods
  • Transaction propagation and isolation
  • Spring JDBC
  • Spring Boot Auto-Configuration
  • Spring Resource interface
  • JSR 330 Standard Annotations
  • Spring Aware Interfaces
  • Spring Transactions
  • Spring Boot Core
  • MVC Rest
  • Spring Boot JPA
©2025 Spring Framework Blog | Built using WordPress and Responsive Blogily theme by Superb