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: MMSecondBean.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 MMSecondBean extends MetaData {
16: private Integer mIdentifier;
17: private Collection<MMFirstBean> mFirstBeans;
18: private String mSecondString;
19:
20: public MMSecondBean() {
21: }
22:
23: public void activateMetaData() {
24: addConstraint(new ConstrainedProperty("identifier")
25: .identifier(true));
26: addConstraint(new ConstrainedProperty("firstBeans")
27: .manyToManyAssociation());
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 setFirstBeans(Collection<MMFirstBean> firstBeans) {
39: mFirstBeans = firstBeans;
40: }
41:
42: public Collection<MMFirstBean> getFirstBeans() {
43: return mFirstBeans;
44: }
45:
46: public void setSecondString(String secondString) {
47: mSecondString = secondString;
48: }
49:
50: public String getSecondString() {
51: return mSecondString;
52: }
53: }
|