CRUD : Cannot create model with undefined play.db.jpa.Blob field

Bug #625178 reported by Olivier
10
This bug affects 2 people
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://localhost/mypc?useUnicode=yes&characterEncoding=UTF-8&connectionCollation=utf8_general_ci
10:15:49,948 DEBUG ~ insert into Article (name, image) values (?, ?)
com.mysql.jdbc.JDBC4PreparedStatement@1ea6778: insert into Article (name, image) values ('Blabla', ** NOT SPECIFIED **)
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: 1.1-beta1
tags: added: 1.1-beta1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.