This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate - Discriminator column and backward competability  RSS feed

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
On table1 I have discriminator column "row_type" (say X or Y)
Sometimes because old data get imported, the discriminator column is empty.
Is there any way I can hibernate to select objects of type "X" or null?


<discriminator insert="true" column="row_type" type="string" length="15"/>
Thank you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!