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/JPAIdentityObjectRelationship.java
Log:
cleanup
Deleted:
trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JPAIdentityObjectRelationship.java
===================================================================
---
trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JPAIdentityObjectRelationship.java 2008-09-19
11:37:32 UTC (rev 93)
+++
trunk/identity-impl/src/main/java/org/jboss/identity/impl/model/JPAIdentityObjectRelationship.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 <a href="mailto:boleslaw.dawidowicz at redhat.com">Boleslaw
Dawidowicz</a>
- * @version : 0.1 $
- */
-@Entity
-@Table(name="identity_relationships")
-public class JPAIdentityObjectRelationship implements IdentityObjectRelationship
-{
-
- @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 toIdentityObject)
- {
- this.type = type;
- this.fromIdentityObject = fromIdentityObject;
- fromIdentityObject.getFromRelationships().add(this);
- this.toIdentityObject = toIdentityObject;
- toIdentityObject.getToRelationships().add(this);
- }
-
- public Long getId()
- {
- return id;
- }
-
- public void setId(Long id)
- {
- this.id = id;
- }
-
- public IdentityObjectRelationshipType getType()
- {
- return type;
- }
-
- public void setType(JPAIdentityObjectRelationshipType type)
- {
- this.type = type;
- }
-
- public JPAIdentityObject getFromIdentityObject()
- {
- return fromIdentityObject;
- }
-
- public void setFromIdentityObject(JPAIdentityObject fromIdentityObject)
- {
- this.fromIdentityObject = fromIdentityObject;
- }
-
- public JPAIdentityObject getToIdentityObject()
- {
- return toIdentityObject;
- }
-
- public void setToIdentityObject(JPAIdentityObject toIdentityObject)
- {
- this.toIdentityObject = toIdentityObject;
- }
-}