Problem with mapping GUID field for ORACLE

Posts   
 
    
casama
User
Posts: 2
Joined: 08-Jun-2011
# Posted on: 08-Jun-2011 18:52:25   

I have problem creating the mapping of entities to the oracle guid fields. I have version 3.0. Thanks for any help

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 09-Jun-2011 05:01:34   

Hi casama.

Please give us more information about your problem: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7721

What are the steps to reproduce your problem?

Additionally, next time please post directly into Designer forum (if the problem is in the designer) or GeneratedCode forum (if you have a problem with your code).

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39753
Joined: 17-Aug-2003
# Posted on: 09-Jun-2011 11:20:09   

Also keep in mind that Oracle doesn't support Guid types, so you need a typeconverter to convert from guid to a type oracle does support (e.g. char(30))

Frans Bouma | Lead developer LLBLGen Pro
casama
User
Posts: 2
Joined: 08-Jun-2011
# Posted on: 09-Jun-2011 14:46:29   

Thanks for answering. My problem is this.

The key field of my entities is guid. When I create the mapping in the "Field mappings" tab -> Create Mapping -> New target..., I create all the columns of my entities except my key field(guid).

I know that Oracle doesn't support Guid types. I want to use the ROW type. Then, I would have to manually create my key field? In this case, is there any converter for GUID type to ROW type?

Thanks again

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 09-Jun-2011 21:42:25   

Assuming you mean RAW datatype, rather than ROW - we think there is an issue using this for PK fields. Your best bet for a guid would be to use char(32) and use a type converter to go backwards and forwards between this and the database field.

The following thread should have the information you need to get started.

http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=18111&HighLight=1

Matt