01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: MOThirdBean.java 3668 2007-02-24 00:13:22Z gbevin $
07: */
08: package com.uwyn.rifetestmodels;
09:
10: import com.uwyn.rife.site.ConstrainedProperty;
11: import com.uwyn.rife.site.MetaData;
12:
13: public class MOThirdBean extends MetaData {
14: private Integer mId;
15: // private Collection<MOFirstBean> mFirstBeans;
16: private String mThirdString;
17:
18: public MOThirdBean() {
19: }
20:
21: public void activateMetaData() {
22: addConstraint(new ConstrainedProperty("id").identifier(true));
23: // addConstraint(new ConstrainedProperty("firstBeans").manyToManyAssociation());
24: }
25:
26: public void setId(Integer id) {
27: mId = id;
28: }
29:
30: public Integer getId() {
31: return mId;
32: }
33:
34: // public void setFirstBeans(Collection<MOFirstBean> firstBeans)
35: // {
36: // mFirstBeans = firstBeans;
37: // }
38: //
39: // public Collection<MOFirstBean> getFirstBeans()
40: // {
41: // return mFirstBeans;
42: // }
43:
44: public void setThirdString(String thirdString) {
45: mThirdString = thirdString;
46: }
47:
48: public String getThirdString() {
49: return mThirdString;
50: }
51: }
|