User: stevensa
Date: 02/03/10 16:23:01
Modified: core/samples/src/java/test/ejb AccountBean.java
AddressBean.java CustomerBean.java
Log:
Temporarily removed some more references to valueobjects so that the samples will
compile.
Revision Changes Path
1.26 +35 -35 xdoclet/core/samples/src/java/test/ejb/AccountBean.java
Index: AccountBean.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/samples/src/java/test/ejb/AccountBean.java,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -w -r1.25 -r1.26
--- AccountBean.java 1 Mar 2002 06:14:00 -0000 1.25
+++ AccountBean.java 11 Mar 2002 00:23:00 -0000 1.26
@@ -7,7 +7,7 @@
import test.interfaces.Account;
import test.interfaces.AccountData;
import test.interfaces.Customer;
-import test.interfaces.AccountValue;
+//import test.interfaces.AccountValue;
/**
* This is an account bean. It is an example of how to use the XDoclet tags.
@@ -30,8 +30,8 @@
*
* @ejb:value-object name="Account" match="*" instantiation="eager"
*
- * @version $Revision: 1.25 $
- * @author $Author: vharcq $
+ * @version $Revision: 1.26 $
+ * @author $Author: stevensa $
*/
public abstract class AccountBean implements EntityBean
{
@@ -167,39 +167,39 @@
*/
public abstract AccountData getData();
- /**
- * @ejb:interface-method view-type="remote"
- */
- public abstract AccountValue getAccountValue();
-
- /**
- * @ejb:interface-method view-type="remote"
- */
- public abstract void setAccountValue(AccountValue value);
-
- /**
- * Create account.
- *
- * @ejb:create-method
- * @ejb:permission role-name="Administrator"
- */
- public Integer ejbCreate(AccountValue data)
- throws CreateException
- {
- setId(data.getId());
- setAccountValue(data);
-
- return null;
- }
-
- /**
- * Create account.
- *
- */
- public void ejbPostCreate(AccountValue data)
- throws CreateException
- {
- }
+// /**
+// * @ejb:interface-method view-type="remote"
+// */
+// public abstract AccountValue getAccountValue();
+//
+// /**
+// * @ejb:interface-method view-type="remote"
+// */
+// public abstract void setAccountValue(AccountValue value);
+//
+// /**
+// * Create account.
+// *
+// * @ejb:create-method
+// * @ejb:permission role-name="Administrator"
+// */
+// public Integer ejbCreate(AccountValue data)
+// throws CreateException
+// {
+// setId(data.getId());
+// setAccountValue(data);
+//
+// return null;
+// }
+//
+// /**
+// * Create account.
+// *
+// */
+// public void ejbPostCreate(AccountValue data)
+// throws CreateException
+// {
+// }
/**
* Transfer money
1.4 +21 -21 xdoclet/core/samples/src/java/test/ejb/AddressBean.java
Index: AddressBean.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/samples/src/java/test/ejb/AddressBean.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -r1.3 -r1.4
--- AddressBean.java 3 Mar 2002 20:19:59 -0000 1.3
+++ AddressBean.java 11 Mar 2002 00:23:00 -0000 1.4
@@ -1,9 +1,9 @@
/*
- * $Id: AddressBean.java,v 1.3 2002/03/03 20:19:59 vharcq Exp $
+ * $Id: AddressBean.java,v 1.4 2002/03/11 00:23:00 stevensa Exp $
*/
package test.ejb;
-import test.interfaces.AddressValue;
+//import test.interfaces.AddressValue;
import test.interfaces.AddressPK;
import javax.ejb.EntityBean;
@@ -37,24 +37,24 @@
*/
public abstract String getCity();
- /**
- * @ejb:interface-method
- */
- public abstract AddressValue getAddressValue();
-
- /**
- * @ejb:interface-method
- */
- public abstract void setAddressValue(AddressValue v);
-
- /**
- * @ejb:create-method
- */
- public AddressPK ejbCreate(AddressValue v)
- throws CreateException{
- setId(v.getId());
- setAddressValue(v);
- return null;
- }
+// /**
+// * @ejb:interface-method
+// */
+// public abstract AddressValue getAddressValue();
+//
+// /**
+// * @ejb:interface-method
+// */
+// public abstract void setAddressValue(AddressValue v);
+//
+// /**
+// * @ejb:create-method
+// */
+// public AddressPK ejbCreate(AddressValue v)
+// throws CreateException{
+// setId(v.getId());
+// setAddressValue(v);
+// return null;
+// }
}
1.34 +30 -30 xdoclet/core/samples/src/java/test/ejb/CustomerBean.java
Index: CustomerBean.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/samples/src/java/test/ejb/CustomerBean.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -w -r1.33 -r1.34
--- CustomerBean.java 10 Mar 2002 13:50:25 -0000 1.33
+++ CustomerBean.java 11 Mar 2002 00:23:00 -0000 1.34
@@ -9,8 +9,8 @@
import test.interfaces.CustomerData;
import test.interfaces.CustomerPK;
import test.interfaces.AccountHome;
-import test.interfaces.CustomerNormalValue;
-import test.interfaces.CustomerValue;
+//import test.interfaces.CustomerNormalValue;
+//import test.interfaces.CustomerValue;
import test.interfaces.AddressUtil;
import test.interfaces.AddressLocalHome;
import test.interfaces.AddressLocal;
@@ -204,34 +204,34 @@
}
}
- /**
- * Create customer.
- *
- * @ejb:create-method
- * @ejb:permission role-name="Administrator"
- */
- public java.lang.Object ejbCreate(CustomerNormalValue data)
- throws CreateException
- {
- try{
- setId(data.getId());
- data.getAddressValue().setId(data.getId());
- AddressUtil.getLocalHome().create(data.getAddressValue());
- return null;
- }catch (Exception e){
- throw new EJBException(e);
- }
- }
-
- /**
- * Post create for create customer.
- *
- * @see #ejbCreate(CustomerNormalValue)
- */
- public void ejbPostCreate(CustomerNormalValue data)
- throws CreateException
- {
- }
+// /**
+// * Create customer.
+// *
+// * @ejb:create-method
+// * @ejb:permission role-name="Administrator"
+// */
+// public java.lang.Object ejbCreate(CustomerNormalValue data)
+// throws CreateException
+// {
+// try{
+// setId(data.getId());
+// data.getAddressValue().setId(data.getId());
+// AddressUtil.getLocalHome().create(data.getAddressValue());
+// return null;
+// }catch (Exception e){
+// throw new EJBException(e);
+// }
+// }
+//
+// /**
+// * Post create for create customer.
+// *
+// * @see #ejbCreate(CustomerNormalValue)
+// */
+// public void ejbPostCreate(CustomerNormalValue data)
+// throws CreateException
+// {
+// }
/**
* Create customer.
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel