users@jersey.java.net

hateoas (design draft #1)

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Mon, 12 Oct 2009 14:58:23 +0200

@Entity
public class PujLinkEntity extends PujAbstractEntity {
        @XmlElement
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE)
        private Integer id;

        @XmlAttribute
        @Column
        private String href;

        @XmlAttribute
        @Column(length = 20)
        private String rel;
}

Then I started to think about an enumeration with the possible relations (rel)

under construction....

* tanks for the last responses... about rel..