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

Closed
btpka3 opened this Issue Nov 15, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 15, 2013

Member

Could this maybe be something to configure in BeanSerializer?

e.g.

beanSerializer.addInterface(Serializable.class);
Member

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

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Nov 17, 2013

Member

Released in 3.3.0.BETA1

Member

timowest commented Nov 17, 2013

Released in 3.3.0.BETA1

@timowest timowest closed this Nov 17, 2013

@btpka3

This comment has been minimized.

Show comment
Hide comment
@btpka3

btpka3 Nov 18, 2013

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

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