ritesh opened a new issue, #807:
URL: https://github.com/apache/directory-scimple/issues/807
I have the Spring SCIM example working well with in-memory persistence. This
is a newbie question (new to Spring boot/modern Java development). I've read
through the documentation and looked around but I'm unsure on the best way to
proceed here.
As I understand it, the `ScimUser` is a data transfer object (DTO). When
implementing a SCIM service using SCIMple, does the service implementer (aka
me) have to create and manage a distinct `@Entity` class that maps attributes
back and forth from a `ScimUser/ScimGroup` resource?
What I'm trying to achieve is to be able to store `ScimUsers` in a database,
but if I say do this in Spring Boot to create a repository, it does not work
since ScimUser is not a managed type.
```
import org.apache.directory.scim.spec.resources.ScimUser;
/////
public interface ScimUserRepository extends JpaRepository<ScimUser, String>
{}
```
I can create my own `UserEntity` but that would just hold all the data that
`ScimUser` already contains and I'd have to write methods to convert to/from
ScimUser for my service to work.
Is that usually the way to do it or is there a better approach?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]