EBeanでカラム型の指定

Stringなフィールドを普通にマッピングしてると、
PostgreSQLのカラム型がVARCHAR(255)になっちゃう。

    public String text_field = "";
                                      Table "public.route"
   Column    |            Type             |                     Modifiers                      
-------------+-----------------------------+----------------------------------------------------
 id          | bigint                      | not null default nextval('route_id_seq'::regclass)
 tour_id     | bigint                      | 
 text_field  | character varying(255)      | 
 create_date | timestamp without time zone | not null
 update_date | timestamp without time zone | not null

こうなるんだけど、下記のようにすると

    @Column(columnDefinition="text")
    public String text_field = "";
                                         Table "public.route"
   Column    |            Type             |                     Modifiers                      
-------------+-----------------------------+----------------------------------------------------
 id          | bigint                      | not null default nextval('route_id_seq'::regclass)
 tour_id     | bigint                      | 
 text_field  | text                        | 
 create_date | timestamp without time zone | not null
 update_date | timestamp without time zone | not null

テキストになった。


参考

stackoverflow.com