JAXb, Hibernate and beans

I am currently working on a project with Spring web service sleeping and JAXb.

1) I generated hibernate beans using IDE 's sleeping code generation,

2) also, I created jaxb beans using the maven compiler.

..

Now, my question is:

1) Is this correct? (so there are so many beans).

2) Should I use JAXb beans for service level processing? How can I keep the layers in the decoupling?

3) Or I need to create another set of beans i.e. map (JAXb beans) to (new beans) to (hibernate beans)?

.

Please tell us your opinions?

Thanks adi

+5
source share
2 answers

, . , .

, , :

  • - , , , JAXB, - API-.
  • - -
  • -

- (JAXB) ( beans). .

+5

. EclipseLink JAXB (MOXy) JAXB 2 (JSR-222). EclipseLink JPA ( TopLink).

. bean -to- bean, , .

beans JPA JAXB. JAXB JPA XML . , - RESTful:

EclipseLink JAXB, JPA, , :


UPDATE

:

, . beans . . ?

, . - . JPA JAXB - -XML.

JPA JAXB , , , JPA, JAXB ( ). , JAXB, JAXB, @XmlAccessorType(XmlAccessType.NONE).

( )

, , XML, . .

+3

All Articles