Only advantage I see now is keeping table size smaller while having
human-readable values.
But size is not an issue, at least now. I'm developing new application
with ebean from scratch, so it's not problem to move to varchar-based
enums at this stage.
BTW, it's first time I use Ebean after using hibernate in several
projects. And it's like a breath of fresh air. I like your approach.
Only disadvantage I see now - "Ebean" sounds funny in russian. Hehe :)
To be fair "Ibatis" was funny too before they renamed :)
On 18 авг, 00:17, Rob Bygrave <
robin.bygr...@gmail.com> wrote:
> > Does ebean supports it? Can I map enum with @EnumValue to that type?
>
> No, not by default. Enum types are mapped to java.sql.Types.VARCHAR or
> java.sql.Types.INTEGER.
>
> Do you see great value in using a Postgres Enum over a Varchar?
>
> Cheers, Rob.
>