Compass provides two main features with JPA: Mirroring and Indexing.
Mirroring mirrors changes made through the JPA API into the search engine
(through lifecycle listeners), and Indexing allows to automatically index
all your database using both the JPA and Searchable classes. The indexing
I tried to open the entity manager before I get the ClassMetaData, but I
still get an empty array. Here is what I do:
OpenJPAEntityManagerFactory emf =
OpenJPAPersistence.cast(entityManagerFactory);
EntityManager entityManager = emf.createEntityManager();
entityManager.close();
ClassMetaData[]
-Original Message-
From: Patrick Linskey
Sent: Tuesday, January 02, 2007 1:44 AM
To: open-jpa-dev@incubator.apache.org
Subject: RE: Getting all the ClassMetaDatas
You may also be interested in the StateManager.getDirty()
method, which
returns a BitSet corresponding
,
and have received this message in error, please immediately return this
by email and then delete it.
-Original Message-
From: Shay Banon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 02, 2007 12:22 AM
To: open-jpa-dev@incubator.apache.org
Subject: RE: Getting all
immediately return this
by email and then delete it.
-Original Message-
From: Shay Banon [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 02, 2007 12:34 AM
To: open-jpa-dev@incubator.apache.org
Subject: Re: Getting all the ClassMetaDatas
I tried to open the entity manager before
-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
Search
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
return this
by email and then delete it.
-Original Message-
From: Patrick Linskey
Sent: Monday, January 01, 2007 5:51 PM
To: open-jpa-dev@incubator.apache.org
Subject: RE: Getting all the ClassMetaDatas
-Original Message-
From: Shay Banon [mailto:[EMAIL PROTECTED]
Sent