Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

discriminator-value cannot be set to null #3572

Open
tohidemyname opened this issue Jul 1, 2024 · 0 comments
Open

discriminator-value cannot be set to null #3572

tohidemyname opened this issue Jul 1, 2024 · 0 comments

Comments

@tohidemyname
Copy link
Contributor

tohidemyname commented Jul 1, 2024

I am porting a Java hibernate project to C#. The Java project has an annotation:

@DiscriminatorValue("null")

I port it to hbm.xml:

<class name="xxx" discriminator-value="null" entity-name="xxx">

I got an exception:

NHibernate.Exceptions.GenericADOException:“could not execute batch command.[SQL: SQL not available]”

It looks like that NHbernate does not support null discriminator-value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant