You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Jo...@filternet.nl on 2014/08/15 19:34:33 UTC

How to bind one class to another

In my Socrates app I created a class 'login' to manage future user front_end logins. How can I set the relationship between user and login so that each user can have at most one login?

�




Re: How to bind one class to another

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
@javax.inject.Inject
private DomainObjectContainer container;

and then:

String userName = container.getUser().getName();




On 15 August 2014 18:34, <Jo...@filternet.nl> wrote:

> In my Socrates app I created a class 'login' to manage future user
> front_end logins. How can I set the relationship between user and login so
> that each user can have at most one login?
>
>
>
>
>
>