Oracle + ModificationFunctionMapping
Oracle + ModificationFunctionMapping
Can you provide a small example for modification (eg. insert) stored procedure mapping?
How the insert stored procedure sholud look like? Hogy the msl mapping and ssdl sholud look like?
Please show an example.
How the insert stored procedure sholud look like? Hogy the msl mapping and ssdl sholud look like?
Please show an example.
Here is a simple example.
Stored procedure Dept_Insert looks like:
The Modification Function Mapping looks like:
The SSDL part looks like:
Stored procedure Dept_Insert looks like:
Code: Select all
CREATE OR REPLACE PROCEDURE SCOTT.Dept_Insert (
Pdeptno NUMBER,
Pdname VARCHAR,
Ploc VARCHAR )
IS
BEGIN
INSERT INTO Dept(Deptno, Dname, Loc) VALUES (Pdeptno, Pdname, Ploc);
END;
Code: Select all
...
Code: Select all
Oracle + ModificationFunctionMapping
Please publish information about result binding for server generated indentity columns from insert stored procedure.
I think that such information is necessary for many developers.
I think that such information is necessary for many developers.
-
- Posts: 8
- Joined: Tue 21 Apr 2009 07:50
I also need information about the workaround
Can you please publish an article that describe how to do it?AndreyR wrote:We have sent you a workaround.
Thanks,
Ido.
-
- Posts: 8
- Joined: Tue 21 Apr 2009 07:50
RAW for storage and Binary for conceptual is problematic
When you create an eager load with .Include() on more than one entity, the generated query creates a sql part to select null values, and because it created TO_BLOB(NULL) parts instead of HEXTORAW(0) part and this causes exceptions because the union statement tries to union different types of columns.
I tried changing the conceptual type to GUID because I read somewhere that GUID is translated into RAW, but then I got an error message because the conceptual field of the GUID cannot be mapped to a function parameter of type REF CURSOR.
Any workaround for this problem?
Ido.
I tried changing the conceptual type to GUID because I read somewhere that GUID is translated into RAW, but then I got an error message because the conceptual field of the GUID cannot be mapped to a function parameter of type REF CURSOR.
Any workaround for this problem?
Ido.
i want to see the work around too, can you send to me please?
thanks,
________
Peter Sutcliffe (Race Driver)
thanks,
________
Peter Sutcliffe (Race Driver)
Last edited by ies on Thu 24 Feb 2011 06:05, edited 1 time in total.