Hi everyone,

I'm trying to use mappingtool's ant task to generate tables for my entity classes. Problem is that it keeps complaining that my entity class does not have persistance metadata. The metadata is available as annotations in the entity class. Is it actually possible to generate tables using only the annotations in the entity class? Another thing is that I would like to avoid specifying the <class> element in the persistence.xml file as there are plans to dynamically drop new persistence classes while the application is running. Please advice!

This is the following error that I am getting.
Embedded error: <0.9.7-incubating fatal user error> org.apache.openjpa.util.MetaDataException: Type "class com.softbrands.subway.core.db.data.MessageEntity" does not have persistence metadata.

This is the entity class
@Entity
@Table(name="MESSAGES", schema="MESSAGES")
public class MessageEntity
{
   @Id @GeneratedValue(strategy=GenerationType.SEQUENCE) @Column(name="ID")
   private long m_Id;
@Version
   @Column(name="OPTLOCK")
private int m_Version; // This is used by JPA implementation to carry out optimistic locking. @Column(name="SIBLING_ID")
   private MessageEntity m_Sibling;
@Column(name="STATUS")
   private String m_Status;
}



Sincerely,
Makas

Reply via email to