[hibernate-dev] Can an attribute annotated with @PrimaryKeyJoinColumn be optional?

Steve Ebersole steve at hibernate.org
Mon Jul 11 18:46:35 EDT 2016


You mean nullable?  If so, no.

On Mon, Jul 11, 2016 at 5:21 PM Gail Badner <gbadner at redhat.com> wrote:

> I know that a simple ID cannot be optional. Can attributes making up a
> composite ID be optional?
>
> HHH-10929 concerns an optional attribute annotated with
> @PrimaryKeyJoinColumn. Is this a valid use case?
>
> Thanks,
> Gail
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list