• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate - Discriminator column and backward competability

 
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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!