Skip to content
New issue

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

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

Already on GitHub? # 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?

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

No branches or pull requests

1 participant