You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I first tried to use HibernateDomainExporter but the above config also worked out for JPADomainExporter. The mapping files are declared within a META-INF/persistence.xml on the classpath, like so:
This works rather well. However, I do have spatial types which are not mapped by default. The documentation hints me to add <spatial>true</spatial> to the Maven plugin config, but I did not find a way to configure the maven codegen plugin to work with hbm.xml mappings.
The text was updated successfully, but these errors were encountered:
This includes a (hopefully) temporary workaround how querydsl
registers spatial path types, i.e. customized versions of
- AbstractDomainExporter
- JPADomainExporter
- SpatialSupport
are used to register needed types. There is a PR open which
discusses the enablement registering such paths from non-apt
use cases.
See:
- querydsl/querydsl#2320
- querydsl/querydsl#2322
I've restored the old SpatialSupport now delegating to SpatialTypeMapper which encapsulates the actual type registration. I shamelessly marked SpatialSupport as @Deprecated, so feel free to revert if you have reasons to not doing so. I am not aware if you have any rules when to deprecate something or not.
tl;dr
Is it possible to either
hbm.xml
filesJPADomainExporter
to register spatial typesI use version
4.1.3
.Context
Section
2.1.4. Generating the model from hbm.xml files
describes a way to generate code from XML mapping files. Having a simple Spring Boot Application:I first tried to use
HibernateDomainExporter
but the above config also worked out forJPADomainExporter
. The mapping files are declared within aMETA-INF/persistence.xml
on the classpath, like so:This works rather well. However, I do have spatial types which are not mapped by default. The documentation hints me to add
<spatial>true</spatial>
to the Maven plugin config, but I did not find a way to configure the maven codegen plugin to work withhbm.xml
mappings.The text was updated successfully, but these errors were encountered: