이 콘텐츠는 선택한 언어로 제공되지 않습니다.
12.2. Writing Seam applications in Groovy
Since Groovy objects are Java objects, any Seam component can be written and deployed with Groovy. You can also combine Groovy and Java classes in the same application.
12.2.1. Writing Groovy components 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
You will need to use Groovy 1.1 or higher to support annotations. The rest of this chapter shows how to use Groovy in a Seam applicatino.
12.2.1.1. Entity 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
Example 12.1. Using Groovy in a Seam Application
Since Groovy supports properties, there is no need to explicitly write verbose getters and setters. In the previous example, the hotel class can be accessed from Java as
hotel.getCity()
— the getters and setters are generated by the Groovy compiler. This makes the entity code very concise.