This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
I have 2 entities, 'Principal' and 'Resource'. 'Principal' implements resource and has a 'Joined' inheritance strategy with resource. 'Resource' entity has a DiscriminatorColumn called 'RESOURCE_TYPE' while the 'Principal' entity has a discriminator value of 'PRINCIPAL'. Now the problem that I am facing is that the discriminator column is neither getting created not populated in the 'Resource' table when I create a 'Principal'. I am using jboss-5 with Hibernate as the persistence provider. Below is the source code.
I would really appreciate if you could help me out.