store strings of arbitrary length in Postgresql

前端 未结 3 1052
悲&欢浪女
悲&欢浪女 2020-12-17 17:12

I have a Spring application which uses JPA (Hibernate) initially created with Spring Roo. I need to store Strings with arbitrary length, so for that reason

3条回答
  •  无人及你
    2020-12-17 18:10

    Use the @LOB definition, it is correct. The table is storing an OID to the catalogs -> postegreSQL-> tables -> pg_largeobject table.

    The binary data is stored here efficiently and JPA will correctly get the data out and store it for you with this as an implementation detail.

提交回复
热议问题