No registered metadata for type "class "

2008-04-12 Thread CG
Hi all , I am a newbie of openjpa , and using openjpa to run on geronimo, coding using eclipse I face a runtime error sounds Caused by: java.lang.Exception: java.lang.IllegalStateException: No registered metadata for type "class com.quesofttech.entity.Material". where "Material" is a class

Re: Annotation of Arraylist myList;

2008-04-12 Thread catalina wei
Hi Lars, Want to correct my previous email. OpenJPA does have this feature implemented already, an example can be found in org.apache.openjpa.persistence.annotations.common.apps.annotApp.annotype.OrderByEntity: @PersistentCollection @OrderBy private List strings = new ArrayList(); If y

Re: How to detect whether there are any dirty objects?

2008-04-12 Thread Georgi Naplatanov
Hello, David, EntityTransaction.isActive() really don't do this. It's my mistake. Because i'm interesting for this issue too, i make the following test, but without success: EntityManager em = emf.create EntityManager() ; em.getTransaction.begin() ; Query q = em.createQuery("DELETE FROM Myobject

Re: How to detect whether there are any dirty objects?

2008-04-12 Thread David Goodenough
On Friday 11 April 2008, Georgi Naplatanov wrote: > Hello, David. > > In your case EntityTransaction.isActive() should do the job. > > Best regards > Georgi > > David Goodenough wrote: > > Is there a way to detect whether there are any modified/dirty objects > > that need to be written to the datas

Re: Annotation of Arraylist myList;

2008-04-12 Thread Janko Heilgeist
catalina wei wrote: Hi Lars, The feature you are looking for has been addressed in the draft of JPA 2.0 spec Section 2.1.5 Collections of Embeddable Classes and Basic Types. I don't think we have this feature implemented in the current OpenJPA releases. Catalina On 4/11/08, Lars Vogel <[EMAIL