01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com> and
03: * JR Boyens <gnu-jrb[remove] at gmx dot net>
04: * Distributed under the terms of either:
05: * - the common development and distribution license (CDDL), v1.0; or
06: * - the GNU Lesser General Public License, v2.1 or later
07: * $Id: MMFirstBean.java 3634 2007-01-08 21:42:24Z gbevin $
08: */
09: package com.uwyn.rife.database.querymanagers.generic.beans;
10:
11: import com.uwyn.rife.site.ConstrainedProperty;
12: import com.uwyn.rife.site.MetaData;
13: import java.util.Collection;
14:
15: public class MMFirstBean extends MetaData {
16: private Integer mIdentifier;
17: private Collection<MMSecondBean> mSecondBeans;
18: private String mFirstString;
19:
20: public MMFirstBean() {
21: }
22:
23: public void activateMetaData() {
24: addConstraint(new ConstrainedProperty("identifier")
25: .identifier(true));
26: addConstraint(new ConstrainedProperty("secondBeans")
27: .manyToMany());
28: }
29:
30: public void setIdentifier(Integer identifier) {
31: mIdentifier = identifier;
32: }
33:
34: public Integer getIdentifier() {
35: return mIdentifier;
36: }
37:
38: public void setSecondBeans(Collection<MMSecondBean> secondBeans) {
39: mSecondBeans = secondBeans;
40: }
41:
42: public Collection<MMSecondBean> getSecondBeans() {
43: return mSecondBeans;
44: }
45:
46: public void setFirstString(String firstString) {
47: mFirstString = firstString;
48: }
49:
50: public String getFirstString() {
51: return mFirstString;
52: }
53: }
|