Generally-speaking, you should be able to bootstrap new classes into
OpenJPA over time. There are some situations that will prevent this
(i.e., if exclude-unlisted-classes is set to true, and possibly some
automatic class-scanning modes).
-Patrick
--
Patrick Linskey
BEA Systems, Inc.
_
I cannot get UserTransaction to work.
Nothing happens when I commit.
This consists of:
- Using a JTA datasource
- specifying Bean Managed Transaction rather then CMT on the enclosing
session Bean.
- looking up a UserTransaction with:
UserTransaction userTran = (UserTransaction) initCtx
Hi,
First, I hope that this is the correct forum for posting questions, so
sorry if it isn't.
I have an external list of classes that I would like to match against the
persistent classes that are defined/identified by OpenJPA. I would really
like to get the ClassMetaData for each one, since i
Hi Don,
The short answer is yes, UserTransaction is supposed to work.
On Jan 1, 2007, at 11:52 AM, Don Brady wrote:
I cannot get UserTransaction to work.
Nothing happens when I commit.
Is the symptom that the commit succeeds but there is no change in the
database?
This consists of:
-
I think it only works if you preehnahce. The runtime enhancer will
only modify on classes with metadata loaded, and the metadata seems
to only be cached at startup.
-dain
On Jan 1, 2007, at 2:36 AM, Patrick Linskey wrote:
Generally-speaking, you should be able to bootstrap new classes int
Shay-
Have you already obtained an EM from the EMF before you make this
call? If you try to get the metadatas after calling
emf.getEntityManager(), do you still see an empty list?
Also, note that unless you enumerate the classes in your
persistence.xml file (in the elements), the only wa
> -Original Message-
> From: Shay Banon [mailto:[EMAIL PROTECTED]
> Sent: Monday, January 01, 2007 1:11 PM
> To: open-jpa-dev@incubator.apache.org
> Subject: Getting all the ClassMetaDatas
>
> ...
>
> p.s.
>
> I am the author of Compass, so once I have this nailed down,
> we will have
Is there any reason why you need to eagerly get information about
classes to process? In general, as you've noticed, OpenJPA does allow
dynamic registration of persistent types. One possibility would be to
declare that in order to use Compass searching with OpenJPA, one must
provide a static list o
BTW, I should probably eludicate a bit. When working with
LifecycleEvents, you can get the instance associated with the event, and
from that you can get the corresponding StateManager and ClassMetaData:
Broker broker = (Broker) ((PersistenceCapable) event.getSource())
.pcGetGenericCont