Hey Chad....
What is the easiest way to get a PDF of the How-To's??? Those pages don't print well from Firefox....
-
Gary Pinkham
Architect
Enterprise Architecture Services
| "Chad Brandon" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED] 01/22/2005 05:13 PM |
To: "'Jan Heise'" <[EMAIL PROTECTED]>, <[email protected]> cc: Subject: RE: [Andromda-user] Spring&Animal-Quiz problem |
Hi Jan,
Each entity has a DAO implemented which handles all finders (like the
factory does in the hibernate cartridge). You can perform any data access
operations within this DAO. Have you taken a look at this recently added
how-to?: http://team.andromda.org/docs/andromda-spring-cartridge/index.html
Chad
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jan Heise
Sent: Saturday, January 22, 2005 3:07 PM
To: [email protected]
Subject: [Andromda-user] Spring&Animal-Quiz problem
Hi,
in my attempt to recreate Animal-Quiz with the Spring-cartridge
and without EJB's I'm stuck.
Could an experienced user with the Spring-Cartridge please
give me some tips to convert the following method into something
that works with the Spring-cartridge ;-)
protected
org.andromda.samples.animalquiz.decisiontree.VODecisionItem
handleGetFirstQuestion(
net.sf.hibernate.Session sess)
throws DecisionException {
try {
Collection dItems = DecisionItemFactory.findRoot(sess);
DecisionItem dItem;
if (dItems.isEmpty()) {
dItem = AnimalFactory.create("elephant", true);
sess.save(dItem);
}
else {
dItem = (DecisionItem) dItems.iterator().next();
}
return dItem.getVO();
}
catch (HibernateException e) {
throw new EJBException(e);
}
}
more specific:
- I think there is no AnimalFactory. What is the strategy to create
Objects?
- Where do I get the Hibernate-Session from?
protected
org.andromda.samples.springanimalquiz.decisiontree.DecisionItem
handleGetFirstQuestion()
throws java.lang.Exception
{
is how the new method looks like after AndroMDA created the Impls from
the model.
I guess some hints would be sufficient. I'm a newbie with Spring too,
so please bear with me,
if I'm asking something obvious or silly.
thx,
Jan
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user
-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Andromda-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-user
