Details
-
Type:
New Feature
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0-BETA4
-
Fix Version/s: 2.3
-
Component/s: None
-
Security Level: All
-
Labels:None
Description
Current @DiscriminatorColumn does not allow to use a specific column definition. However, in the MySQL world it is quite common to use the ENUM or TINYINT datatype for efficient discriminator columns. It would be great if something like this would be possible:
@DiscriminatorColumn(name="member_type",type="string",columnDefinition="ENUM('ANONYMOUS','FREE','PREMIUM')")
How is ENUM efficient? Its a very bad datatype in my opinion with its sorting strangeness and alter table overhead