tag:blogger.com,1999:blog-1710464868724994296.post4865347333556462117..comments2023-06-29T09:48:09.653-04:00Comments on Java XML and JSON Binding: Creating a RESTful Web Service - Part 2/5 (Annotations)Blaise Doughanhttp://www.blogger.com/profile/02016807982653343777noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-1710464868724994296.post-87883114669395561482011-09-14T11:05:05.150-04:002011-09-14T11:05:05.150-04:00Hi Tinku,
Below is a link on how to handle compos...Hi Tinku,<br /><br />Below is a link on how to handle composite primary keys with <a href="http://www.eclipse.org/eclipselink/moxy.php" rel="nofollow">EclipseLink JAXB (MOXy)</a>:<br /><br />- <a href="http://wiki.eclipse.org/EclipseLink/UserGuide/MOXy/Relationships/Shared_Reference/Keys_and_Foreign_Keys/Composite_Key" rel="nofollow">Mapping Composite Key Relationships</a><br /><br />The above strategy will also work when using <i>@EmbeddedId</i>.<br /><br />-BlaiseBlaise Doughanhttps://www.blogger.com/profile/02016807982653343777noreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-27824163981460767662011-09-14T05:33:08.428-04:002011-09-14T05:33:08.428-04:00hi Blaise,
could you please show me an example how...hi Blaise,<br />could you please show me an example how to marshal Composite PK inline?<br />For example:<br />public class FreeUnit implements Serializable {<br /> private static final long serialVersionUID = 1L;<br /> @EmbeddedId<br /> protected FreeUnitPK freeUnitPK;<br />}<br /><br />I would like to have the fields of PK inline in XML of FreeUnit.<br /><br />regards,<br />TinkuAnonymousnoreply@blogger.com