[odb-users] Re:odb-users Digest, Vol 55, Issue 11

天空同学 tiankongcc1991 at qq.com
Tue Mar 17 11:29:18 EDT 2015


hi, I got a problem: I defined a class Employee with a member boost::shared_ptr<int> , then the odb tell me a error in generate the xx-odb.hxx file: "unable to map c++ type ::boost::shared_ptr<int> ...", so who can tell me why? Thank you!



------------------ Original ------------------
From: "odb-users-request"<odb-users-request at codesynthesis.com>; 
Date: 2015年3月17日(星期二) 凌晨0:00
To: "odb-users"<odb-users at codesynthesis.com>; 
Subject: odb-users Digest, Vol 55, Issue 11



Send odb-users mailing list submissions to
	odb-users at codesynthesis.com

To subscribe or unsubscribe via the World Wide Web, visit
	http://codesynthesis.com/mailman/listinfo/odb-users
or, via email, send a message with subject or body 'help' to
	odb-users-request at codesynthesis.com

You can reach the person managing the list at
	odb-users-owner at codesynthesis.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of odb-users digest..."


Today's Topics:

   1. Re: Composite pattern (not composite value) with extra
      pointer to a child (Boris Kolpackov)
   2. Re: Simple libodb-sqlite test (Boris Kolpackov)


----------------------------------------------------------------------

Message: 1
Date: Mon, 16 Mar 2015 15:23:55 +0200
From: Boris Kolpackov <boris at codesynthesis.com>
Subject: Re: [odb-users] Composite pattern (not composite value) with
	extra	pointer to a child
To: Alexandre Pretyman <alexandre.pretyman at gmail.com>
Cc: odb-users at codesynthesis.com
Message-ID: <boris.20150316152203 at codesynthesis.com>
Content-Type: text/plain; charset=us-ascii

Hi Alexandre,

Alexandre Pretyman <alexandre.pretyman at gmail.com> writes:

> So it seems that for this scenario odb must be part of wiring of
> the object pointers.

Quoting from Chapter 6, "Relationships":

"When persisting or updating an object containing a pointer to another object,
 the pointed-to object must have a valid object id. This, however, may not
 always be easy to achieve in complex relationships that involve objects with
 automatically assigned identifiers. In such cases it may be necessary to
 first persist an object with a pointer set to NULL and then, once the
 pointed-to object is made persistent and its identifier assigned, set the
 pointer to the correct value and update the object in the database."

Boris



------------------------------

Message: 2
Date: Mon, 16 Mar 2015 15:27:25 +0200
From: Boris Kolpackov <boris at codesynthesis.com>
Subject: Re: [odb-users] Simple libodb-sqlite test
To: Adnan RIHAN <axel50397 at gmail.com>
Cc: "odb-users at codesynthesis.com" <odb-users at codesynthesis.com>
Message-ID: <boris.20150316152420 at codesynthesis.com>
Content-Type: text/plain; charset=utf-8

Hi Adnan,

Adnan RIHAN <axel50397 at gmail.com> writes:

> I don’t get it [...]

See if this helps:

http://codesynthesis.com/products/odb/doc/install-macosx.xhtml

Particularly, the "Installing the Runtime Libraries" section.

Boris



------------------------------

_______________________________________________
odb-users mailing list
odb-users at codesynthesis.com
http://codesynthesis.com/mailman/listinfo/odb-users


End of odb-users Digest, Vol 55, Issue 11
*****************************************


More information about the odb-users mailing list