Код: Выделить всё
@Entity
@Table(name = "style")
public class Style implements Serializable {
...
@Column(name = "style_abstract")
@Lob
private String styleAbstract;
}
Код: Выделить всё
...
Код: Выделить всё
@Column(name = "style_abstract", columnDefinition = "TEXT")
@Type(type = "org.hibernate.type.TextType")
private String styleAbstract;
< /code>
и с необработанным SQL в Postgres: < /p>
ALTER TABLE style
ALTER COLUMN style_abstract TYPE TEXT
Код: Выделить всё
WARN [2025-03-13 11:41:57] SqlExceptionHelper@137: SQL Error: 0, SQLState: 42704
ERROR [2025-03-13 11:41:57] SqlExceptionHelper@142: ERROR: large object 0 does not exist
ERROR [2025-03-13 11:41:57] ExceptionUtil@115: Caught an exception:
could not execute statement; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not execute statement
at service.WMSRepositoryService$$EnhancerBySpringCGLIB$$d482f768.deleteStyleById(:-1)
Подробнее здесь: https://stackoverflow.com/questions/795 ... ob-to-text