From dev-return-4636-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon Jun 25 15:24:45 2007 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 26779 invoked from network); 25 Jun 2007 15:24:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jun 2007 15:24:44 -0000 Received: (qmail 99183 invoked by uid 500); 25 Jun 2007 15:24:47 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 99153 invoked by uid 500); 25 Jun 2007 15:24:47 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 99139 invoked by uid 99); 25 Jun 2007 15:24:47 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 08:24:47 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ducknight@gmail.com designates 64.233.166.176 as permitted sender) Received: from [64.233.166.176] (HELO py-out-1112.google.com) (64.233.166.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Jun 2007 08:24:42 -0700 Received: by py-out-1112.google.com with SMTP id f31so2233896pyh for ; Mon, 25 Jun 2007 08:24:21 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=D/9OWefEMx4QbunYZjJEZk+6FQTrU6esFmSAwfdT11DEPrSGxTr5ShhYvBz/V+ef6XvMBgpU1ltyTVy+bZmNZr0ve2h9SitMiSdLSY9p4PhNZIWKNvCXEUd+bcbhQsr+RdyecA+MVtKfzep4wk0ANQb3Kgl4DdiN/ACLC6bHWO8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=I23oYRNtiW0IbuLWtFh5qbMXMuvOw0v1+7uLqxDMwUeDSlR664gJiX4Zua9Z/9R6nGl5R9GJwR0JkA5Lgaax2SAbKqSS+pX9s0CliMZtBIkdXSmaHJ1ZfoEowJDB/ofNFnD0HT8u8RloRDB7+qOjsvNe8XTGC5xlKx39/DMYBVA= Received: by 10.141.14.14 with SMTP id r14mr741117rvi.1182785061419; Mon, 25 Jun 2007 08:24:21 -0700 (PDT) Received: from ?192.168.2.100? ( [218.208.192.219]) by mx.google.com with ESMTP id f21sm6870009rvb.2007.06.25.08.24.19 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 25 Jun 2007 08:24:20 -0700 (PDT) Message-ID: <467FDE21.2050701@gmail.com> Date: Mon, 25 Jun 2007 23:24:17 +0800 From: Makas Tzavellas User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: dev@openjpa.apache.org Subject: Using ant task mappingtool to generate tables Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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 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