[jboss-cvs] JBossAS SVN: r105543 - projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Jun 1 23:54:34 EDT 2010
Author: misty at redhat.com
Date: 2010-06-01 23:54:34 -0400 (Tue, 01 Jun 2010)
New Revision: 105543
Modified:
projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Groovy.xml
Log:
JBPAPP-4387
Modified: projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Groovy.xml
===================================================================
--- projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Groovy.xml 2010-06-02 03:53:14 UTC (rev 105542)
+++ projects/docs/enterprise/EAP/trunk/5.x/Seam_Reference_Guide/en-US/Groovy.xml 2010-06-02 03:54:34 UTC (rev 105543)
@@ -28,7 +28,7 @@
<section>
<title>Entity</title>
-<programlisting role="JAVA"><![CDATA[
+<programlisting language="Java" role="JAVA">
@Entity
@Name("hotel")
class Hotel implements Serializable {
@@ -60,7 +60,7 @@
String toString(){
return "Hotel(${name},${address},${city},${zip})"
}
-}]]>
+}
</programlisting>
<para>
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 <code>hotel.getCity()</code> — the getters and setters are generated by the Groovy compiler. This makes the entity code very concise.
More information about the jboss-cvs-commits
mailing list