I'm unclear about the following and I'd appreciate help in gaining 
clarification. 

1. Can/should entities that are marked with JPA
annotations also be marked with JAXB annotations for use as
request/response objects? For example is the following acceptable? 

@XmlRootElement(name="Category") 
@Entity 
@Table(name="category") 
public class Category { ... } 

2. When using HTTP centric clients, must the client have a copy of the 
request/response objects. If yes, is there anyway around it? 

Thanks. 

-Dan

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to