1:package com.bsc.entity; 2: 3:import java.util.List; 4: 5:/** 6: * The person entity. 7: */ 8:public class <%name%> { 9: @foreach i in fields{ @ 10: private @i.type.name@ _@i.name@; 11: @} 12: 13: foreach i in lists{ @ 14: private List _@i.role@; 15: @ 16: } 17: @ 18: public @name@( @foreach i in lists{ 19: @List List _@i.role@, 20: @} 21: foreach i in fields{ @ 22: @i.type.name@ _@i.name@ @ 23: if !last(i) {@, @}@ 24: @}@) { 25: @foreach i in lists{ @ 26: this._@i.role@ = _@i.role@; 27: @} 28: foreach i in fields{ @ 29: this._@i.name@ = _@i.name@; 30: @}@ 31: } 32: 33: @foreach i in lists{ @ 34: public List get@i.role@() { 35: return _@i.role@; 36: } 37: 38: public void set@i.role@(List @i.role@) { 39: this._@i.role@ = _@i.role@; 40: } 41: @}@ 42: 43: @foreach i in fields{ @ 44: public int get@i.name@() { 45: return _@i.name@; 46: } 47: 48: public void set@i.name@(int @i.name@) { 49: this._@i.name@ = @i.name@; 50: } 51: @}@ 52: 53:}