Describe how to use the model class as Jersey entity
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Mon, 20 May 2013 14:49:00 +0200
changeset 103a2bd4692c004
parent 102 2945acef8083
child 104 c053a7d09c8c
Describe how to use the model class as Jersey entity
json/src/main/java/net/java/html/json/package.html
     1.1 --- a/json/src/main/java/net/java/html/json/package.html	Thu May 16 21:14:23 2013 +0200
     1.2 +++ b/json/src/main/java/net/java/html/json/package.html	Mon May 20 14:49:00 2013 +0200
     1.3 @@ -52,9 +52,19 @@
     1.4      The model classes can be used for JSON based server communication. Just
     1.5      use <a href="OnReceive.html">@OnReceive</a> annotation to define a communication
     1.6      point in the model class. Please note, that the model classes can easily
     1.7 -    be used on server as well (tested with Jersey) - the same code can run
     1.8 -    in your browser as well as on your server.
     1.9 +    be used on server as well - the same code can run
    1.10 +    in your browser as well as on your server. Just add following to your <em>pom.xml</em>
    1.11 +    to use your classes generated by <a href="Model.html">@Model</a> annotation
    1.12 +    as <a href="http://jersey.java.net" target="new">Jersey</a> entities:
    1.13      </p>
    1.14 +    <pre>
    1.15 +&lt;dependency&gt;
    1.16 +  &lt;groupId&gt;org.glassfish.jersey.media&lt;/groupId&gt;
    1.17 +  &lt;artifactId&gt;html-json&lt;/artifactId&gt;
    1.18 +  &lt;version&gt;2.1-SNAPSHOT&lt;/version&gt;
    1.19 +  &lt;scope&gt;runtime&lt;/scope&gt;
    1.20 +&lt;/dependency&gt;
    1.21 +    </pre>
    1.22      <p>
    1.23      Behavior of model classes can be enriched by using 
    1.24      <a href="ComputedProperty.html">@ComputedProperty</a> annotation (to