On Feb 24, 2007, at 8:47 PM, Lasantha Ranaweera wrote:
Hi David,
I have been going on this same jpa sample given on testsuite and
having a
problem too (may be I am missing some basic thing in JSR). Anyway
thought
to give a try on this same thread it looks iron is hot here and it
will
give some insight on G to our users too. ;)
In my debugging enviroment shows that above sample application
creates 3
PersistenceUnitGBeans. The one I dont understand it named 'cmp'. Where
does it comes from ? Either 'persistence.xml' or 'openejb-jar.xml'
doesn't
have that information know. Do you have any idea what is I am missing
here?
That one is created by some magic code dain wrote to map cmp 2.1
entity beans to jpa. Apparently it shows up even if you have no
entity beans.
thanks
david jencks
Thanks,
Lasantha
For g 1.2 you can consult the daytrader jpa mode (daytrader 1.2
IIUC). G 1.2 is not jaaee5 compliant so you have to use a bunch of
proprietary features.
for g 2.0 you can consult the ttestsuite/enterprise-testsuite/jpa-
tests/ which has a very simple example that I think is using only
spec features. I think pretty much everything is working except
persistence-context-ref and persistence-unit-ref injection. That
might work in ejbs.
Hope this helps
david jencks