'Can I save only the name of the File class in java and hibernate?
Can I save File class as a VARCHAR, because I want to save a real file on a disc and save only filename in database as a VARCHAR. Maybe there is an annotation for example as
@SaveAsString
private File file;
I'am using PostgreSQL and by default it saves File class as a bytea datatype.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
