We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Literal serialization code is now in the SQLTemplates code https://github.com/mysema/querydsl/blob/master/querydsl-sql/src/main/java/com/mysema/query/sql/SQLTemplates.java#L368
The code uses joda times directly and doesn't use the pluggable type handling of the Configuration class.
One solution could be provide a method like this in SQLTemplates
public String serialize(String literal, int jdbcType)
In addition to this the registered Type handlers will need to provide literal serialization as well
interface Type { // existing methods int[] getSQLTypes(); Class<T> getReturnedClass(); T getValue(ResultSet rs, int startIndex) throws SQLException; void setValue(PreparedStatement st, int startIndex, T value) throws SQLException; // new methods String getLiteral(T value) (default returns value.toString()) }
This is just a proposal, feel free to comment.
The text was updated successfully, but these errors were encountered:
Released in 3.3.3
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Literal serialization code is now in the SQLTemplates code https://github.com/mysema/querydsl/blob/master/querydsl-sql/src/main/java/com/mysema/query/sql/SQLTemplates.java#L368
The code uses joda times directly and doesn't use the pluggable type handling of the Configuration class.
One solution could be provide a method like this in SQLTemplates
In addition to this the registered Type handlers will need to provide literal serialization as well
This is just a proposal, feel free to comment.
The text was updated successfully, but these errors were encountered: