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: MOSecondBean.java 3716 2007-04-11 06:21:18Z gbevin $
07: */
08: package com.uwyn.rifetestmodels;
09:
10: import com.uwyn.rife.site.ConstrainedProperty;
11: import com.uwyn.rife.site.MetaData;
12: import java.util.Collection;
13:
14: public class MOSecondBean extends MetaData {
15: private Integer mIdentifier;
16: private Collection<MOFirstBean> mFirstBeans;
17: private String mSecondString;
18:
19: public MOSecondBean() {
20: }
21:
22: public void activateMetaData() {
23: addConstraint(new ConstrainedProperty("identifier")
24: .identifier(true));
25: addConstraint(new ConstrainedProperty("firstBeans")
26: .manyToOneAssociation());
27: }
28:
29: public void setIdentifier(Integer identifier) {
30: mIdentifier = identifier;
31: }
32:
33: public Integer getIdentifier() {
34: return mIdentifier;
35: }
36:
37: public void setFirstBeans(Collection<MOFirstBean> firstBeans) {
38: mFirstBeans = firstBeans;
39: }
40:
41: public Collection<MOFirstBean> getFirstBeans() {
42: return mFirstBeans;
43: }
44:
45: public void setSecondString(String secondString) {
46: mSecondString = secondString;
47: }
48:
49: public String getSecondString() {
50: return mSecondString;
51: }
52: }
|