A large object can be stored in several records, that’s why you have to use a transaction. All records are correct or nothing at all.
https://www.postgresql.org/docs/current/static/largeobjects.html
More Related Contents:
- Mapping PostgreSQL JSON column to a Hibernate entity property
- what is @JoinColumn and how it is used in Hibernate
- @BatchSize a smart or stupid use?
- Persisting UUID in PostgreSQL using JPA
- Hibernate throws MultipleBagFetchException – cannot simultaneously fetch multiple bags
- Hibernate Annotations – Which is better, field or property access?
- Hibernate JPA Sequence (non-Id)
- How to store date/time and timestamps in UTC time zone with JPA and Hibernate
- Bypass GeneratedValue in Hibernate (merge data not in db?)
- Confusion: @NotNull vs. @Column(nullable = false) with JPA and Hibernate
- How does the FetchMode work in Spring Data JPA
- Hibernate – @ElementCollection – Strange delete/insert behavior
- JPA SQL Server No Dialect mapping for JDBC type: -9
- JPA entity without id
- Can I combine a @Query definition with a Specification in a Spring Data JPA repository method?
- Multiple fetches with EAGER type in Hibernate with JPA
- Mapping array with Hibernate
- Could not commit JPA transaction: Transaction marked as rollbackOnly
- Spring JpaRepository – Detach and Attach entity
- java.lang.IllegalStateException: Multiple representations of the same entity with @ManyToMany 3 entities
- Native query with named parameter fails with “Not all named parameters have been set”
- JPA: what is the proper pattern for iterating over large result sets?
- JPA Query.getResultList() – use in a generic way
- Error creating bean with name ‘entityManagerFactory
- HQL joined query to eager fetch a large number of relationships
- Hibernate vs JPA vs JDO – pros and cons of each? [closed]
- Clarifying terminology – What does “hydrating” a JPA or Hibernate entity mean when fetching the entity from the DB
- What properties does @Column columnDefinition make redundant?
- org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags
- JPA Updating Bidirectional Association