Reputation: 43
I have an Entity with a field of byte array type.
The static meta model is throwing an error during deploy.
I would try to fix it if I wanted to query on that field but I do not. It is binary data @Lob.
Is there an @Annotation to make the auto-gen skip a field during compile? Even a class altogether, I can get away with using JPQL for that class only while awaiting a fix.
I am working in Rational App. Developer (Eclipse/OpenJPA)
Thanks,
Thierry Dupard
Upvotes: 1
Views: 1188
Reputation: 235
You can delete the files after compilation:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete>
<fileset dir="${project.build.outputDirectory}/../generated-sources/annotations/org/...="*.java" />
<fileset dir="${project.build.outputDirectory}/org/..." includes="*_.class" />
</delete>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
Upvotes: 1