• 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic