문제

I would like to know if there is any way I can store a fileAttachment directly into the database with JPA.

I have an attribute:

public fileAttachement logo;

I have tried to change it to:

@Lob
public byte[] logo;

But that's not doing what I was expecting.

도움이 되었습니까?

해결책

And a "fileAttachment" is what exactly ? class definition ? DataNucleus provides a flexible way of persisting any type as a String, so depending on your "fileAttachment" you could use that

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top