From jboss-identity-commits at lists.jboss.org Fri Sep 19 07:38:01 2008 Content-Type: multipart/mixed; boundary="===============8834920531854356760==" MIME-Version: 1.0 From: jboss-identity-commits at lists.jboss.org To: jboss-identity-commits at lists.jboss.org Subject: [jboss-identity-commits] JBoss Identity SVN: r94 - trunk/identity-impl/src/main/java/org/jboss/identity/impl/model. Date: Fri, 19 Sep 2008 07:38:01 -0400 Message-ID: --===============8834920531854356760== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: bdaw Date: 2008-09-19 07:38:01 -0400 (Fri, 19 Sep 2008) New Revision: 94 Removed: trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JPAIdent= ityObjectRelationship.java Log: cleanup Deleted: trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JP= AIdentityObjectRelationship.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JPAIden= tityObjectRelationship.java 2008-09-19 11:37:32 UTC (rev 93) +++ trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JPAIden= tityObjectRelationship.java 2008-09-19 11:38:01 UTC (rev 94) @@ -1,108 +0,0 @@ -/* -* JBoss, a division of Red Hat -* Copyright 2006, Red Hat Middleware, LLC, and individual contributors as = indicated -* by the @authors tag. See the copyright.txt in the distribution for a -* full listing of individual contributors. -* -* This is free software; you can redistribute it and/or modify it -* under the terms of the GNU Lesser General Public License as -* published by the Free Software Foundation; either version 2.1 of -* the License, or (at your option) any later version. -* -* This software is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -* Lesser General Public License for more details. -* -* You should have received a copy of the GNU Lesser General Public -* License along with this software; if not, write to the Free -* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA -* 02110-1301 USA, or see the FSF site: http://www.fsf.org. -*/ - -package org.jboss.identity.impl.model; - -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Table; - -import org.jboss.identity.model.core.IdentityObjectRelationship; -import org.jboss.identity.model.core.IdentityObjectRelationshipType; - -/** - * @author Boleslaw D= awidowicz - * @version : 0.1 $ - */ -(a)Entity -(a)Table(name=3D"identity_relationships") -public class JPAIdentityObjectRelationship implements IdentityObjectRelati= onship -{ - - @Id - @GeneratedValue - private Long id; - - @ManyToOne - private JPAIdentityObjectRelationshipType type; - - @ManyToOne - private JPAIdentityObject fromIdentityObject; - - @ManyToOne - private JPAIdentityObject toIdentityObject; - - public JPAIdentityObjectRelationship() - { - } - - public JPAIdentityObjectRelationship(JPAIdentityObjectRelationshipType = type, JPAIdentityObject fromIdentityObject, JPAIdentityObject toIdentityObj= ect) - { - this.type =3D type; - this.fromIdentityObject =3D fromIdentityObject; - fromIdentityObject.getFromRelationships().add(this); - this.toIdentityObject =3D toIdentityObject; - toIdentityObject.getToRelationships().add(this); - } - - public Long getId() - { - return id; - } - - public void setId(Long id) - { - this.id =3D id; - } - - public IdentityObjectRelationshipType getType() - { - return type; - } - - public void setType(JPAIdentityObjectRelationshipType type) - { - this.type =3D type; - } - - public JPAIdentityObject getFromIdentityObject() - { - return fromIdentityObject; - } - - public void setFromIdentityObject(JPAIdentityObject fromIdentityObject) - { - this.fromIdentityObject =3D fromIdentityObject; - } - - public JPAIdentityObject getToIdentityObject() - { - return toIdentityObject; - } - - public void setToIdentityObject(JPAIdentityObject toIdentityObject) - { - this.toIdentityObject =3D toIdentityObject; - } -} --===============8834920531854356760==--