This content has been marked as final.
Show 3 replies
-
1. Re: NEWBIE: Seam-Project using DAOs instead of org.jboss.seam.framework.Query?
jeffreyhsu Sep 3, 2008 3:44 PM (in response to mean.meanmachine.gmx.at)this is seam application framework.
you can get detail information in
Chapter 13. The Seam Application Framework
of the reference. -
2. Re: NEWBIE: Seam-Project using DAOs instead of org.jboss.seam.framework.Query?
mean.meanmachine.gmx.at Sep 4, 2008 10:19 AM (in response to mean.meanmachine.gmx.at)Hi Jeffrey,
thanks for your fast reply! I've already read this chapter of the seam framework.
But the way they describe it is not the way I would like to go. I wanted to use a structure like that:
- de.autohaus.benutzerverwaltung
Benutzerverwaltung.java <- interface
BenutzerverwaltungImpl.java implements the interface (= application tier that calls the methods from the DAO-Classes).
- de.autohaus.benutzerverwaltung.db
BenutzerverwaltungDAO.java <- interface
BenutzerverwaltungDAOImpl.java <- implements the interface and accessing the database (including functions like "findAllUsers(){..} findAllUsersByName() {..} findAdressesByCode() {..}...") as you can see all functions concerning the users/customers
Customer (=Entities)
Address
BankAccount
...
- de.autohaus.fahrzeugverwaltung (the same as above for the vehicles)
Fahrzeugverwaltung.java
FahrzeugverwaltungImpl.java
- de.autohaus.fahrzeuverwaltung.db
FahrzeuverwaltungDAO.java
FahrzeuverwaltungDAOImpl.java
Entities
- de.autohaus.bestellverwaltung (the same for the ordering)
Bestellverwaltung.java
BestellverwaltungImpl.java
- de.autohaus.bestellverwaltung.db
BestellverwaltungDAO.java
BestellverwaltungDAOImpl.java
Entities
That's the way I would like to solve it (with namedQueries in the entities), but the only way I found it is to write a XYZHome-Class and make a getter that returns a query. But this is not a 3-Tier Architecture (hopefully this is the right word in english) in my mind?!?!
Hopefully someone can help me doing it the way I described above.
Thanks and best regards,
Dirk -
3. Re: NEWBIE: Seam-Project using DAOs instead of org.jboss.seam.framework.Query?
nickarls Sep 4, 2008 10:23 AM (in response to mean.meanmachine.gmx.at)Dear mr. Machine (or may I call you Mean)?
I recommend you read the few first chapters of the manual, too.
Good luck with your homework.
Sorry. Couldn't help myself. I did try. Honest.