[jboss-user] [EJB 3.0] - Enum column real length = length * 4, when use @Enumerated(
snau2005
do-not-reply at jboss.com
Tue Aug 1 11:20:09 EDT 2006
I have enum:
public enum MyEnum { ValueOne, ValueTwo };
I have entity with column:
@Column(nullable = true, length=255)
@Enumerated(EnumType.STRING) public MyEnum myEnum;
Table in DB have colmun of size 1020 (varchar 1020), but I specified length = 255,
if length = 80, then column varchar 320, if length 40 column 160.
It seems than engine multiples length by 4.
Why is so?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3962214#3962214
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3962214
More information about the jboss-user
mailing list