Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 27EFA90B9 for ; Tue, 7 Aug 2012 15:22:16 +0000 (UTC) Received: (qmail 15382 invoked by uid 500); 7 Aug 2012 15:22:15 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 15291 invoked by uid 500); 7 Aug 2012 15:22:15 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 15280 invoked by uid 99); 7 Aug 2012 15:22:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 15:22:14 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kwsutter@gmail.com designates 209.85.220.174 as permitted sender) Received: from [209.85.220.174] (HELO mail-vc0-f174.google.com) (209.85.220.174) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Aug 2012 15:22:09 +0000 Received: by vcbfk26 with SMTP id fk26so4852062vcb.33 for ; Tue, 07 Aug 2012 08:21:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=YfphDYqZVv6+J/VNmUBhsYj4NYXgY1bj3J3WP7z1zhs=; b=IEAO1yD18x7GzDJ6eZSOy1/vXjgDoof6RBxPPkiSssN1G5De3grQ+v8aVz4vm4l/2u un+T5wf/haMj6xpHisWUDSzpwRbaeU37rzxrx1JBx5romkakUlVAH0exEHkOHuPW2gXV tVXQ8KQczwqwjmLnN4VydZm6956h+Dv+g3V/oSGdiyxjLKxJyDG1uBFOmJP5pvmX78te 84AEP4eHsMGH09MNQkJCTFg34yWFWo6L0kSlp3wahum2Bq7QZ/Oex/FeCnLj59PCdxzE +4FmbO2frMaxzKEXPmVxfrZbgAOzYpyCO8E1UgpS8/1FpBaKvKx+V7u3ktHBBbBIyvZh p74A== Received: by 10.52.95.203 with SMTP id dm11mr9755059vdb.70.1344352908981; Tue, 07 Aug 2012 08:21:48 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.58.148 with HTTP; Tue, 7 Aug 2012 08:21:28 -0700 (PDT) In-Reply-To: References: <1344189148.87190.YahooMailNeo@web28904.mail.ir2.yahoo.com> From: Kevin Sutter Date: Tue, 7 Aug 2012 10:21:28 -0500 Message-ID: Subject: Re: Annotations removed when enhancing? To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=bcaec50162a197b67904c6ae8d4d X-Virus-Checked: Checked by ClamAV on apache.org --bcaec50162a197b67904c6ae8d4d Content-Type: text/plain; charset=ISO-8859-1 I'm curious why you think that the annotations are removed... Even after enhancement is performed, OpenJPA parses the entity classes to get the ORM data, which is normally specified via annotations. Do you have an example? Kevin On Sun, Aug 5, 2012 at 1:09 PM, Chris Joysn wrote: > well.. unfortunately a framework relies on it to detect JPA entities... i > think there is no other way to detect in a reliable way JPA entities? > > LieGrueZuRue > > > On 5 August 2012 19:52, Mark Struberg wrote: > > > Having code relying on @Entity is bitter so to say ;) > > > > All JPA functions could also be added via XML, without having any > > annotation on your entities... > > > > Such code would btw also not work in Hibernate if you use proxies. > Becasue > > the generated proxies don't have annotations neither. > > > > LieGrue, > > strub > > > > > > > > ----- Original Message ----- > > > From: Chris Joysn > > > To: users@openjpa.apache.org > > > Cc: > > > Sent: Sunday, August 5, 2012 7:19 PM > > > Subject: Annotations removed when enhancing? > > > > > > Hello, > > > > > > is it possible that entities do not get their annotations removed when > > > OpenJPA is performing its enhancements? > > > > > > unfortunately some code relies on the fact that eg. @Entity is present > on > > > classes, but this annotation gets removed by OpenJPA. > > > > > > thanks > > > > > > --bcaec50162a197b67904c6ae8d4d--