-
1. Re: Complete, working Example-Implementation for EntityHome<
gavin.king Mar 26, 2007 12:58 PM (in response to mugwump)Currently there is a bug in JBoss EJB3 which meant that it was hard to write a Home object using EJB3. This is probably already fixed.
So follow the contactlist example (which does not use EJB3) to see how to use plain JavaBean components, or just let seam-gen generate everything for you. -
2. Re: Complete, working Example-Implementation for EntityHome<
mugwump Mar 27, 2007 1:52 AM (in response to mugwump)Ok, the contactlist provides an example for the declarative use of the class via fwk in the components.xml - is it actually possible right now to use plain javabeans for the implementation (with not only the managed part being javabeans, but also the controller e.g. ContactHome is implemented as a POJO)?!
And even if it is possible: If we want to write a ContactHome as a Stateless/Stateful SessionBean, the LocalContactHome still needs all the methods like getInstance, setId etc. on it's interface: An interface with all the methods, which are now only on the abstract classes, would still come in handy for that case.... -
3. Re: Complete, working Example-Implementation for EntityHome<
gavin.king Mar 27, 2007 1:24 PM (in response to mugwump)Try out "seam generate-entities".
-
4. Re: Complete, working Example-Implementation for EntityHome<
purplahaze May 22, 2007 12:22 PM (in response to mugwump)I can't use "seam generate-entities"
our DB has about 3000 tables and views.
(with views in Sybase 'seam generate-entities' don't work properly)
It would be nice make this call
seam generate-entities <table1 table2 table3>
I have to use StoredProcedures.
To call it, I make injection
@Resource(mappedName="java:/web_franceDatasource")
DataSource ds;
....
Connection conn = ds.getConnection();
CallableStatement cs = conn.prepareCall(sql);
but with POJOs it didn't work :( -
5. Re: Complete, working Example-Implementation for EntityHome<
anarinsky May 22, 2007 4:13 PM (in response to mugwump)Dear Gaven,
Seam-gen allows one to quickly generate a lot of functionalities. However, EntityHome objects are used instead of session beans.
The only available example for using EntityHome objects is seampay, but this example is not described in the documentation or available books.
Adding documentation/examples for using seam-gen and EntityHome would be very useful.
Do you plan to do this?
Thanks! -
6. Re: Complete, working Example-Implementation for EntityHome<
hstang May 22, 2007 4:32 PM (in response to mugwump)dvdstore, contactlist, and ui also use EntityHome declaritively in components.xml.