Maybe I was unclear, I want to do something like:
orm.xml
Code:
<entity-mappings version="1.0" xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd ">
<entity class="MyClass" metadata-complete="false">
here I can map standard JPA functionality, but not for example fitlers.
</entity>
</entity-mappings>
+someOther.hbm.xml
Code:
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="MyClass">
map additional hibernate functions like filters
</class>
</hibernate-mapping>
So I want two mapping-xmls, which both should be used. Is this possible? Could I do something else besides Annotations?