Skip to content
New issue

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

Make querydsl:export generate SQL domain beans implement java.io.Serializable #558

Closed
btpka3 opened this issue Nov 15, 2013 · 3 comments
Closed
Milestone

Comments

@btpka3
Copy link

@btpka3 btpka3 commented Nov 15, 2013

com.mysema.query.codegen.BeanSerializer#serialize(EntityType, SerializerConfig, CodeWriter) not write any interface for SQL domain beans:
code at BeanSerializer.java line 134:

        if (printSupertype && model.getSuperType() != null) {
            writer.beginClass(model, model.getSuperType().getType()); // No interface passed
        } else {
            writer.beginClass(model); // No interface passed
        }

Hope can add this feature for other usage ( such as serialization for cache etc.)

@timowest
Copy link
Member

@timowest timowest commented Nov 15, 2013

Could this maybe be something to configure in BeanSerializer?

e.g.

beanSerializer.addInterface(Serializable.class);
timowest added a commit that referenced this issue Nov 16, 2013
@timowest
Copy link
Member

@timowest timowest commented Nov 17, 2013

Released in 3.3.0.BETA1

@timowest timowest closed this Nov 17, 2013
@btpka3
Copy link
Author

@btpka3 btpka3 commented Nov 18, 2013

The change may need to update querydsl-maven-plugin too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants