Message from discussion
Monto Type Hierarchy Question
Received: by 10.180.105.41 with SMTP id gj9mr3968789wib.3.1350420079426;
Tue, 16 Oct 2012 13:41:19 -0700 (PDT)
X-BeenThere: liftweb@googlegroups.com
Received: by 10.180.78.230 with SMTP id e6ls396659wix.4.gmail; Tue, 16 Oct
2012 13:41:04 -0700 (PDT)
Received: by 10.180.101.9 with SMTP id fc9mr3958062wib.3.1350420064195;
Tue, 16 Oct 2012 13:41:04 -0700 (PDT)
Received: by 10.180.101.9 with SMTP id fc9mr3958061wib.3.1350420064183;
Tue, 16 Oct 2012 13:41:04 -0700 (PDT)
Return-Path: <tob...@tesobe.com>
Received: from mail.musicpictures.com (mail.musicpictures.com. [178.63.148.179])
by gmr-mx.google.com with ESMTPS id k11si1324920wiv.0.2012.10.16.13.41.04
(version=TLSv1/SSLv3 cipher=OTHER);
Tue, 16 Oct 2012 13:41:04 -0700 (PDT)
Received-SPF: pass (google.com: domain of tob...@tesobe.com designates 178.63.148.179 as permitted sender) client-ip=178.63.148.179;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of tob...@tesobe.com designates 178.63.148.179 as permitted sender) smtp.mail=tob...@tesobe.com
Received: from localhost (localhost [127.0.0.1])
by mail.musicpictures.com (Postfix) with ESMTP id BE69D2460B4
for <liftweb@googlegroups.com>; Tue, 16 Oct 2012 22:41:02 +0200 (CEST)
X-Virus-Scanned: amavisd-new at mail.musicpictures.com
Received: from mail.musicpictures.com ([127.0.0.1])
by localhost (mail.musicpictures.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id Uptos3eK4ybN for <liftweb@googlegroups.com>;
Tue, 16 Oct 2012 22:41:01 +0200 (CEST)
Received: from snake.localnet (91-66-162-73-dynip.superkabel.de [91.66.162.73])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(No client certificate requested)
(Authenticated sender: tobias.tesobe.com)
by mail.musicpictures.com (Postfix) with ESMTPSA id 7EF012460B0
for <liftweb@googlegroups.com>; Tue, 16 Oct 2012 22:41:01 +0200 (CEST)
From: Tobias Pfeiffer <tob...@tesobe.com>
To: liftweb@googlegroups.com
Subject: Re: [Lift] Monto Type Hierarchy Question
Date: Tue, 16 Oct 2012 22:40:56 +0200
User-Agent: KMail/1.13.5 (Linux/2.6.32-43-generic; KDE/4.4.5; i686; ; )
References: <B376C4C0-89A7-467A-A8CA-2C798F446...@agynamix.de>
In-Reply-To: <B376C4C0-89A7-467A-A8CA-2C798F446...@agynamix.de>
MIME-Version: 1.0
Content-Type: multipart/signed;
boundary="nextPart1529093.vhyD0K6cs0";
protocol="application/pgp-signature";
micalg=pgp-sha1
Content-Transfer-Encoding: 7bit
Message-Id: <201210162241.00704.tob...@tesobe.com>
--nextPart1529093.vhyD0K6cs0
Content-Type: Text/Plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi Torsten,
Am Dienstag, 16. Oktober 2012, 18:52 schrieb AGYNAMIX Torsten Uhlmann:
> I try to create a trait:
>=20
> trait StructuredDbObject[BaseRecord <: MongoRecord[BaseRecord]]
> extends MongoMetaRecord[BaseRecord]
>=20
> This gives me the compiler error:
>=20
> illegal inheritance; self-type StructuredDbObject[BaseRecord] does
> not conform to
> net.liftweb.mongodb.record.MongoMetaRecord[BaseRecord]'s selftype
> net.liftweb.mongodb.record.MongoMetaRecord[BaseRecord] with
> BaseRecord
>=20
> Looking at the MongoMetaRecord definition it has the same type
> definition as above:
>=20
> trait MongoMetaRecord[BaseRecord <: MongoRecord[BaseRecord]]
However, MongoMetaRecord's Self type is
MongoMetaRecord[BaseRecord] with BaseRecord
see <http://scala-
tools.org/mvnsites/liftweb-2.4/#net.liftweb.mongodb.record.MongoMetaRecord>
and <http://www.scala-lang.org/node/124>
So maybe try to add a self type as well or write
trait StructuredDbObject[BaseRecord <: MongoRecord[BaseRecord]]
extends BaseRecord with MongoMetaRecord[BaseRecord]
or something?
Tobias
--nextPart1529093.vhyD0K6cs0
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAABAgAGBQJQfcZYAAoJEJjKwPY5+xN5LjcH/jOodniNy7fbwaU+zQwIEZK6
h1e2+PLBaEYW1QiUYmrzAf17sb5P3QjgUQXmuY5estuuR8GqrNLi/fiwXj8OwHKN
gSDiii/se+XlDOhQvUVtfzPEOsK/xXY6ujhxrmfl46ngi32Ak6ly4sDw/Yhf5NVD
992MK7WiOfFCkMluvt/mq9Pke9+5e+h5gTtsqfHxbuxLJ94q1QXCPAZzkeLlO/sS
uipM01kAR2aQAzdbP5HCOW2zAuZVC8stbQlqmttuQouLryXgrZJzmYqyu4xIpbpZ
IHrAkRtSFzz8IFyuuvlkqLLzpsNKpvKbfPzx3QNKGdvRetKCrNwFdO8mWfnhOCI=
=F6Zc
-----END PGP SIGNATURE-----
--nextPart1529093.vhyD0K6cs0--