|
Hi
Martin, hi Wouter,
the
Hibernate cartridge also uses EJB session beans for the <<Service>>
classes. The <<Entity>> classes are implemented with Hibernate. This
is why you can use the web tier as-is (see my car rental sample). There is no
difference in the service API between the EJB and the Hibernate cartridge,
therefor, there is only one set of web tier classes in the car rental
sample. Of course, internally, there are two implementations of the service
session beans which behave differently because they talk to different entity
implementations.
You
asked in your question whether it makes sense to do a three-step generation
after separating different architectural aspects into different cartridges.
The truth is: you can even do a one-step generation using multiple
cartridges in the same AndroMDA run. However, only one cartridge should
respond to the same aspect (persistence, web workflow and so
on).
Example: The car rental system uses two AndroMDA runs: 1) with EJB,
Struts and Java cartridge activated, 2) with Hibernate, Struts and Java
cartridge activated.
HTH...
Matthias
|
Title: Nachricht
- [andromda-user] seperate cartridges MArtin Schumacher
- Re: [andromda-user] seperate cartridges Wouter Zoons
- Matthias Bohlen
