MaxOSX10.7.5 MySQL5 JDK6 JPA2
I've just started JPA and have a entity class. It has a String member mapping to MySQL text type like below:
@Entity
@Table(name="Device")
public class Device {
@Column(name="notes")
public String notes;
}
MySQL definition:
`notes` text CHARACTER SET utf8
When I try to do unit test, I am getting error:
... for column notes. Found: text, expected: longtext
I added @Lob annotation but it didn't work. And I put length property like length=2000|10000|20000 but no luck. In addition @Lob + length property but same.
How can I solve the problem?
Thanks in advance.