Skip to main content

Types and Hibernate Types

  • Chapter
  • First Online:
Spring Boot Persistence Best Practices
  • 1332 Accesses

Abstract

Think of a Hibernate type as a bridge between a Java type (object or primitive) and an SQL type. Hibernate ORM comes with a built-in set of supported types, but there are also other Java types that Hibernate doesn't support (e.g., java.time.YearMonth introduced in Java 8).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 59.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://github.com/vladmihalcea/hibernate-types

  2. 2.

    HibernateSpringBootYearMonth

  3. 3.

    HibernateSpringBootMappingLobToByteString

  4. 4.

    HibernateSpringBootMappingLobToClobAndBlob

  5. 5.

    HibernateSpringBootEnumStringInt

  6. 6.

    HibernateSpringBootEnumAttributeConverter

  7. 7.

    HibernateSpringBootEnumPostgreSQLCustomType

  8. 8.

    HibernateSpringBootEnumPostgreSQLHibernateTypes

  9. 9.

    https://dev.mysql.com/doc/refman/8.0/en/json.html

  10. 10.

    HibernateSpringBootJsonToMySQL

  11. 11.

    https://www.postgresql.org/docs/9.4/datatype-json.html

  12. 12.

    HibernateSpringBootJsonToPostgreSQL

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Anghel Leonard

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Leonard, A. (2020). Types and Hibernate Types. In: Spring Boot Persistence Best Practices. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5626-8_16

Download citation

Publish with us

Policies and ethics