It's Been a While
I haven't posted in a while, but here's a good post of frustration!
I have been working on my thesis project, but have and issue with my Blobs... The default type of blob used by Hibernate is too small for my data. So, I need to find a way to make it create a column of type LONGBLOB, or at least MEDIUMBLOB, but it makes me sad. This one issue is (hopefully) all that stands between me and good perforance. However, not being able to save data sets larger than 1MB causes all sorts of issues.
1 Comments:
@Column(columnDefinition-[INSERT TYPE HERE])
so ...
@Column(columnDefinition="largetext")
public String getFoo() { ... }
will create a long text column for foo rather than the default varchar.
Column API for more info. I generally avoid the use of @LOB when using JPA; it tends to cause more problems than it resolves depending on your JDBC implementation.
Post a Comment
<< Home