Created
October 22, 2013 20:13
-
-
Save lincolnthree/7107340 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.ocpsoft.redoculous.io.model.repositories; | |
| import java.util.HashSet; | |
| import java.util.Set; | |
| import javax.persistence.CascadeType; | |
| import javax.persistence.Entity; | |
| import javax.persistence.Inheritance; | |
| import javax.persistence.InheritanceType; | |
| import javax.persistence.OneToMany; | |
| import org.picketlink.idm.jpa.model.sample.simple.AccountTypeEntity; | |
| @Entity | |
| @Inheritance(strategy = InheritanceType.JOINED) | |
| public class UserAccount extends AccountTypeEntity | |
| { | |
| private static final long serialVersionUID = 4581044700527131400L; | |
| @OneToMany(mappedBy = "account", cascade = { CascadeType.REFRESH }) | |
| private Set<SourceRepository> repositories = new HashSet<SourceRepository>(); | |
| public Set<SourceRepository> getRepositories() | |
| { | |
| return this.repositories; | |
| } | |
| public void setRepositories(final Set<SourceRepository> repositories) | |
| { | |
| this.repositories = repositories; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment