This affects 5.0.9, when using a @JoinColumn(name="some name") then length attribute from @Embeddable is lost. The workaround is to explicitly set columnDefinition in the @JoinColumn again