java - What happens if the length attribute is not specified on the @Column annontation for a String -


What if I do not specify length attribute for the following comment? Notice that the field is string.

  @column (name = "region", nullable = false) public string getRegion () {return region; }  

If you do not specify the length attribute Hibernate takes the default length which is 255 if the type of attribute is string .

Check it out


Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

class - Kivy: how to instantiate a dynamic classes in python -

python - mayavi mapping a discrete colorbar on a surface -