1 /* 2 * E-nspire Gemini. 3 * A Java and AspectJ based framework that enables transparent 4 * bidirectional relationships between Plain Old Java Objects. 5 * 6 * Copyright (C) 2005 Dragan Djuric 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License 10 * as published by the Free Software Foundation; either version 2 11 * of the License, or (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 * 22 * Contact the author at dragand@dev.java.net 23 */ 24 package com.enspire.gemini.integration.model.simplesimple; 25 26 import com.enspire.gemini.annotation.BidirectionalOne; 27 28 /*** 29 * @author Dragan Djuric <dragand@dev.java.net> 30 * 31 */ 32 public class ABidirectional implements A { 33 34 @BidirectionalOne( 35 oppositeName="a") 36 private A a; 37 38 @BidirectionalOne( 39 oppositeName="a") 40 private B b; 41 42 /*** 43 * @return Returns the a. 44 */ 45 public A getA() { 46 return this.a; 47 } 48 49 /*** 50 * @param a The a to set. 51 */ 52 public void setA(A a) { 53 this.a = a; 54 } 55 56 /*** 57 * @return Returns the b. 58 */ 59 public B getB() { 60 return this.b; 61 } 62 63 /*** 64 * @param b The b to set. 65 */ 66 public void setB(B b) { 67 this.b = b; 68 } 69 70 }