属性访问 ( property access ):必须设定getter/setter,在getter上设定@Column等值,通过getter/setter注入值。
基于28个网页-相关网页
The result of judicious design, all dynamic method calls get routed through invokeMethod and property access through getProperty and setProperty.
明智设计的结果是:通过invokeMethod调用所有的动态方法,通过getProperty和setProperty访问属性。
When you invoke a Groovy method that has no parameters, you must call it with an empty set of parentheses, which allows Groovy to distinguish between a property access from a method call.
当您调用一个没有参数的Groovy方法时,您必须使用一对空括号调用它,这使得Groovy可以分清一个属性访问和一个方法调用之间的区别。
Property access then provides a convenient way to write joins.
属性存取则提供了撰写联结的简便方法。
应用推荐