[odb-users] Generating Database Support Code

Myoungkyu Song mksong at vt.edu
Mon Dec 13 10:34:36 EST 2010


Hi, Boris

Thanks for your reply. Actually, based on the odb-compile-message, I had
already tried to fix it by using this 'typedef' way. However, I had gotten
another error message like this;

$ odb -I../../../x10_2.1.0/include/ -d mysql --generate-query
SequenceModel.h
SequenceModel.h:68:1: error: unable to map C++ type '::StringRef' used in
data member 'x10__id' to a database type
SequenceModel.h:68:1: info: use '#pragma db type' to specify the database
type

(Attached is the modified files.)

Best regards,
Myoungkyu Song



On Mon, Dec 13, 2010 at 5:22 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> Hi Myoungkyu,
>
> Myoungkyu Song <mksong at vt.edu> writes:
>
> > SequenceModel.h:27:1: error: unnamed type in data member declaration
> > SequenceModel.h:27:1: info: use 'typedef' to name this
>
> ODB 1.0.0 does not support template-ids like x10aux::ref<x10::lang::String>
> in persistent data members. The next release (1.1.0, planned for the
> beginning
> of January) will fix this. In the meantime, you can use a typedef alias to
> work around this limitation, for example:
>
> typedef x10aux::ref<x10::lang::String> StringRef;
> StringRef FMGL(id);
>
> I can also package you a beta distribution of ODB 1.1.0 with the
> template-id
> support, if you would like.
>
> Boris
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SequenceModel.h
Type: text/x-chdr
Size: 2540 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20101213/d67fa240/SequenceModel.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SequenceModel.cc
Type: text/x-c++src
Size: 5359 bytes
Desc: not available
Url : http://codesynthesis.com/pipermail/odb-users/attachments/20101213/d67fa240/SequenceModel.cc


More information about the odb-users mailing list