Hello. As in JPA 2 specify a different location for the persistence.xml configuration file (by default, in the META-INF folder) or specify in this file the place where to get files from the persistence-unit , where the type description is located
<persistence-unit name="commonStorage"> <provider>org.hibernate.ejb.HibernatePersistence</provider> <class>rct.gomel.drp.persistence.entities.commonstorage.CsDiagnosticResult</class> <class>rct.gomel.drp.persistence.entities.commonstorage.CsRegistrationCard</class> <properties> <property name="hibernate.connection.url" value="jdbc:sqlserver://rct-server:1433; databaseName=RCT_CommonStorage"/> ... ... ... ...