RE: Generation of entity classes

2007-01-01 Thread Patrick Linskey
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. _

Should UserTransaction Work?

2007-01-01 Thread Don Brady
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

Getting all the ClassMetaDatas

2007-01-01 Thread Shay Banon
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

Re: Should UserTransaction Work?

2007-01-01 Thread Craig L Russell
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: -

Re: Generation of entity classes

2007-01-01 Thread Dain Sundstrom
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

Re: Getting all the ClassMetaDatas

2007-01-01 Thread Marc Prud'hommeaux
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

RE: Getting all the ClassMetaDatas

2007-01-01 Thread Patrick Linskey
> -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

RE: Getting all the ClassMetaDatas

2007-01-01 Thread Patrick Linskey
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

RE: Getting all the ClassMetaDatas

2007-01-01 Thread Patrick Linskey
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