Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 12981 invoked from network); 22 May 2010 11:49:20 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 May 2010 11:49:20 -0000 Received: (qmail 77858 invoked by uid 500); 22 May 2010 11:49:19 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 77830 invoked by uid 500); 22 May 2010 11:49:19 -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 77822 invoked by uid 99); 22 May 2010 11:49:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 May 2010 11:49:19 +0000 X-ASF-Spam-Status: No, hits=4.3 required=10.0 tests=AWL,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of webautomator2@gmail.com designates 74.125.82.174 as permitted sender) Received: from [74.125.82.174] (HELO mail-wy0-f174.google.com) (74.125.82.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 22 May 2010 11:49:15 +0000 Received: by wyb29 with SMTP id 29so481646wyb.33 for ; Sat, 22 May 2010 04:48:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=WBXSN1Qqi5/UtTbiH7WHyqz+3aWLPcLBBCcXE27I46Q=; b=UaA7PXcv2Xi8QI5FTUWPS2N2v8mJHyo9wIw/e8hpHqhozAdRetBPomGjqyTI5iiff+ CQaILCcZ19sjd2PbxDSVeavf7WwCC+gRTS/lakYXD/YfDLqGbnqCzgxCiqB4gerk50gE zmfbajAE8LKmU1l48N7BRPdVLdSs7dNsju4rE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=LBTudrNVgE9aSi6e9sLSiOX1+pdoQNuQYkGl3HAqIMAVVrxPs9rea1D+G8r4Evdxsj Md/mfhLsAWGlPZZMTvx3Jqyhya+iOy4t66Uo8j+IC/J7xx+IvO6cg11iQM2ckSaH7+fZ QKkdeUyQM5T2FeD6sSK7ZTmJmGiddA5bcW0ow= MIME-Version: 1.0 Received: by 10.216.157.134 with SMTP id o6mr1590210wek.201.1274528934203; Sat, 22 May 2010 04:48:54 -0700 (PDT) Received: by 10.216.220.200 with HTTP; Sat, 22 May 2010 04:48:54 -0700 (PDT) In-Reply-To: References: Date: Sat, 22 May 2010 14:48:54 +0300 Message-ID: Subject: Re: JPA and Scala From: Web developer To: dev@openjpa.apache.org Content-Type: multipart/alternative; boundary=001485f44ff86113b204872d645c --001485f44ff86113b204872d645c Content-Type: text/plain; charset=ISO-8859-1 Interesting, and what is a practical purpose of application(s) that you develop? John 2010/5/21 Christopher Schmidt > Hi all, > I am working on a JPA wrapper for Scala and I think that I have found > an elegant way to use some ideas of JPA. > I managed to wrap EntityManager, EntitiyManagerFactory and Query. > > Unfortunately, there is no simple and elegant way to use Scala's > collections. Using Scala classes as entities works fine, as long they > are using java.lang.List (and the other collections that are > specified). > > My question is: What would it mean (in terms of effort and knowledge) > to allow a Scala collection (f.e. a Buffer) as a OneToMany entity > attribute? > > Regards Christopher > > > > PS: > > Buffer is Scala's mutable "List" implementation (see > > http://www.scala-lang.org/archives/downloads/distrib/files/nightly/docs/library/scala/collection/mutable/Buffer.html > ) > > If you are interested look at http://blog.fakod.eu/?p=855 > (description) and http://github.com/FaKod/JPA-for-Scala (code) > --001485f44ff86113b204872d645c--