CRUD : Cannot create model with undefined play.db.jpa.Blob field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
play framework |
New
|
Undecided
|
Unassigned |
Bug Description
I have a model with a "Blob" property :
import play.db.jpa.Blob;
import play.db.jpa.Model;
@Entity
public class Article extends Model {
public String name;
public Blob image;
}
Image property is not mandatory (can be NULL in db), but when I try to create an article instance with the crud module, without specify the image value, play! crash with the following error :
10:15:49,284 INFO ~ Connected to jdbc:mysql:
10:15:49,948 DEBUG ~ insert into Article (name, image) values (?, ?)
com.mysql.
10:15:49,949 WARN ~ SQL Error: 0, SQLState: 07001
10:15:49,949 ERROR ~ No value specified for parameter 2
10:15:50,057 ERROR ~
If I specify the image value, the article is correctly saved.
tags: | added: 1.1-beta1 |