Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
JPASQL: mapping of enums throws "illegal argument type" when mapping string from DB to setter for corresponding enum on DTO #575
When using the metadata generated from apt-maven-plugin in JPASQLQueries, then enum columns defined as text in the DB are not projectable into a DTO property for this enum.
A more exhaustive description may be found on stackoverflow:
added a commit
Nov 29, 2013
Could you try again with the latest SNAPSHOT from here https://oss.sonatype.org/content/repositories/snapshots
In general Querydsl SQL is a safer choice for SQL queries, since Querydsl has then full control of the result mapping, for Querydsl JPA native queries it is result post processing, which is not as clean.
You can use Querydsl SQL within JPA if you can access to the underlying JDBC connection.