From dev-return-16397-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Mon May 10 20:56:51 2010 Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 7727 invoked from network); 10 May 2010 20:56:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 May 2010 20:56:51 -0000 Received: (qmail 27687 invoked by uid 500); 10 May 2010 20:56:51 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 27628 invoked by uid 500); 10 May 2010 20:56:51 -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 27620 invoked by uid 99); 10 May 2010 20:56:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 20:56:51 +0000 X-ASF-Spam-Status: No, hits=-1410.1 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 May 2010 20:56:50 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4AKuTaQ026978 for ; Mon, 10 May 2010 20:56:29 GMT Message-ID: <31045854.4221273524989374.JavaMail.jira@thor> Date: Mon, 10 May 2010 16:56:29 -0400 (EDT) From: "Pinaki Poddar (JIRA)" To: dev@openjpa.apache.org Subject: [jira] Commented: (OPENJPA-1612) Mapping an unsupported type In-Reply-To: <760585936.697291270502307174.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1612?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12865919#action_12865919 ] Pinaki Poddar commented on OPENJPA-1612: ---------------------------------------- Rick, In my view, this is not a change in the right direction. OpenJPA used to have a reasonably advanced support for untyped relations. These capabilities are described in [1] Now in the past, I had used these powerful features to demonstrate how generically typed structures can be modeled [2] in OpenJPA (that blog unfortunately has been eaten by a very powerful company and one can merely find its indirect cached references by searching for 'Persistence of Generic Graph Pinaki Poddar" ;). Recently I noticed that those powerful type system is weakened (meaning those neat generic model example does not work with OpenJPA 2.0). Support for generically typed domain model is a powerful construct and OpenJPA was quite capable of meeting that demand. Hence I consider OpenJPA 2.0 has regressed on that aspect. I have not investigated deeply, but my cursory look at the changes suggest that cause of the regression is more at the surface and can be corrected at ease. In view of that observation, I see this current commit as a step backward. And I hope that the original committer will consider rolling the change back. [1] will provide the user sufficient choices on how to persist Object o -- when it is assigned to a Persistence Capable entity, or merely a Serializable at different levels of OpenJPA type support. [1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#type [2] http://www.mail-archive.com/users@openjpa.apache.org/msg01370.html > Mapping an unsupported type > --------------------------- > > Key: OPENJPA-1612 > URL: https://issues.apache.org/jira/browse/OPENJPA-1612 > Project: OpenJPA > Issue Type: Improvement > Components: kernel > Affects Versions: 1.2.2, 2.0.0, 2.1.0 > Reporter: Rick Curtis > Assignee: Rick Curtis > Priority: Minor > Fix For: 2.1.0 > > > As discussed on the dev mailing list [1]... > I found that the following mapping: > @Entity > public class AnnoTest1 { > @ManyToOne > Object o; > ... > } > This results in a warning message [2], but it is allowed. This JIRA will be used to detect this condition and fail fast. > [1] http://openjpa.markmail.org/thread/6yphicehgclyobag > [2] 297 TestConv WARN [main] openjpa.MetaData - OpenJPA cannot map field "test.AnnoTest1.o" efficiently. It is of an unsupported type. The field value will be serialized to a BLOB by default. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.