[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipselink-users] Suddenly not finding descriminator classes
|
So using joined inheritance but some classes are not being found. I get the
error:
javax.persistence.PersistenceException: Exception [EclipseLink-43] (Eclipse
Persistence Services - 2.5.1.v20130918-f2b9fc5):
org.eclipse.persistence.exceptions.DescriptorException
Exception Description: Missing class for indicator field value [8] of type
[class java.lang.Integer].
Descriptor:
RelationalDescriptor(nz.cri.gns.jpaDatabase.entities.BoreHole.BoreHole -->
[DatabaseTable(SC.BORE_HOLE)])
And yet I have a class in the project with:
@Entity(name = "GeothermalBore")
@Table(name = "MINERAL.GEOTHERMAL_BORE")
@DiscriminatorValue("8")
@PrimaryKeyJoinColumn(name="BH_ID",referencedColumnName="BH_ID")
public class GeothermalBore extends BoreHole{
Annoyingly, it used to work. Added some other classes with other other
discriminator values and suddenly it doesnt.
Persistance.xml has all the entities:
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="BoreDatabase" transaction-type="RESOURCE_LOCAL">
<provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
<class>nz.cri.gns.jpaDatabase.entities.BoreTypes.PetroleumBore</class>
<class>nz.cri.gns.jpaDatabase.entities.Boretypes.GeothermalBore</class>
<class>nz.cri.gns.jpaDatabase.entities.Boretypes.CoalBore</class>
<class>nz.cri.gns.jpaDatabase.entities.BoreTypes.MineralBore</class>
<class>nz.cri.gns.jpaDatabase.entities.BoreHole.BoreHole</class>
Any ideas of where to start looking for problems?
--
View this message in context: http://eclipse.1072660.n5.nabble.com/Suddenly-not-finding-descriminator-classes-tp171164.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.