I am trying to implement securesocial (authentication plugin for Play2) using slick.
The problem I am facing is that I want to store everything in one table, but there are several entities that are classes of classes that should be subordinate entities of the user. See Problem: https://github.com/leon/securesocial/blob/slick-demo/samples/scala/slick/app/models/User.scala#L63-L96
My question is, how do I map columns so that they are correctly converted to their respective case classes, where case classes are nested in another case class?
The same problem occurs when converting a single column to the case class https://github.com/leon/securesocial/blob/slick-demo/samples/scala/slick/app/models/User.scala#L61
Where I worked with MappedTypeMapper.base , but I'm not sure if this is the right way. https://github.com/leon/securesocial/blob/slick-demo/samples/scala/slick/app/models/User.scala#L61
MappedTypeMapper.base
Any suggestions would be appreciated!
No one has answered this question yet.
See similar questions:
or similar:
Source: https://habr.com/ru/post/1468916/More articles:Left / right connect to multiple connections in a query - c #Send existing key modifiers to autohotkey? - autohotkeyRename multiple files in bash - linuxThis () constructor is not needed? - javaWhy is the Eclipse ant editor warning me - javaRockscroll as a plugin for notepad ++? - visual-studioBefore each subitem in MenuStrip - c #Managing a tap event on a component over another component - listenerFaye server does not start with wizard - ruby-on-railsQSharedData and operator = - c ++All Articles