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

Case class serialization for Scala / SQL #54

timowest opened this issue Nov 21, 2011 · 3 comments

Case class serialization for Scala / SQL #54

timowest opened this issue Nov 21, 2011 · 3 comments


Copy link

@timowest timowest commented Nov 21, 2011

In addition to the generation of normal Scala classes, case classes could be generated via a special Serializer class.

If the order of fields is the same as in the matching relational path type, it should be possible to populate it in query projections via constructor projection instead of a QBean.

Example :

object User extends QUser("user") {
    override def as(variable: String) = new QUser(variable)


case class User(id: Long, firstName: String, lastName: String, ...)
Copy link
Member Author

@timowest timowest commented Dec 12, 2011

Released in 2.3.0

@timowest timowest closed this Dec 12, 2011
Copy link

@khoran khoran commented Nov 8, 2013

How do I use this feature? I would like to have case classes generated as it looks like you have above, instead of or in addition to the normal bean classes. Thanks.

Copy link

@lefou lefou commented Nov 13, 2013

Instead of


write this

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

Successfully merging a pull request may close this issue.

None yet
3 participants