[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model ...

Christian Bauer christian at hibernate.org
Fri Apr 20 05:10:12 EDT 2007


  User: cbauer  
  Date: 07/04/20 05:10:12

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/model 
                        FeedEntry.java
  Log:
  Finished document history and diff feature
  
  Revision  Changes    Path
  1.5       +13 -0     jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FeedEntry.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/model/FeedEntry.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- FeedEntry.java	19 Apr 2007 18:36:11 -0000	1.4
  +++ FeedEntry.java	20 Apr 2007 09:10:12 -0000	1.5
  @@ -47,6 +47,11 @@
       @Length(min = 1, max = 32768)
       private String descriptionValue;
   
  +    @ManyToOne(fetch = FetchType.LAZY)
  +    @JoinColumn(name = "DOCUMENT_ID")
  +    @org.hibernate.annotations.ForeignKey(name = "FK_FEEDENTRY_DOCUMENT_ID")
  +    private Document document;
  +
       @ManyToMany(fetch = FetchType.LAZY)
       @JoinTable(
           name = "FEED_FEEDENTRY",
  @@ -125,6 +130,14 @@
           return getDescriptionValue().replaceAll("\\<.*?\\>","");
       }
   
  +    public Document getDocument() {
  +        return document;
  +    }
  +
  +    public void setDocument(Document document) {
  +        this.document = document;
  +    }
  +
       public Set<Feed> getFeeds() {
           return feeds;
       }
  
  
  



More information about the jboss-cvs-commits mailing list