Hi Sandeep,
Its appropriate. I have been referencing Pro
EJB 3
Java Persistence API while writing the code, and there is a clear example of using the discriminatorcolumn in the same way that i have done here.
Moreover, hibernate does not need to use the discriminator column, unlike other implementations. Thats what i have found out after googling around a bit.
Had it been an issue, i would never have been able to perisist these entities elsewhere, or when i remove the not null constraint on my database column.
Anyways, Thanks for trying. But I still cant find out whats wrong...
Regards,
Ryan Sukale