Multi table constraint or using a complex condition for a constraint
Something went wrong with this post
Hi,
Let me try to help...
You don't need to have the FK defiined in the database to use it at ODI, at true, with this feature, you can even define a FK between technologies (for instance, file to oracle).
In your case, if I understood right, as there are concatenated values into the child column, you could use a Condition, in the Orders table, like:
length(replace(orders.DISCOUNT_CODES, ' ',null)) !=
(select count(*)
from (select substr(orders.DISCOUNT_CODES, rPos, 1) rDC
from (select level rPos
from dual
connect by level <11
) tab_DC,
Discount
where tab_DC.rDC = discount.DISCOUNT_CODE
In this way, the amout of code in the orders.DISCOUNT_CODES must be the same of a count from the union of each individual code wiht the DISCOUNT TABLE.
Please try it, I just write withou test once I didn't create your tables here.
Does it work for you?
Cezar Santos
[www.odiexperts.com]
Edited by: Cezar Santos - www.odiexperts.com on 29/09/2009 19:22
Similar Messages
-
Centring table in IE using CSS/Wrapper Div for oscommerce
Hi,
I am implementing OScommerce using stylesheets to centre the
oscommerce page in the browser.
I am using a #holder (wrapper) div around the whole BODY
contents with left and right margins set to "auto"
(This is based on Adrian Senior's article on this site
http://www.adobe.com/devnet/dreamweaver/articles/css_concepts_mx2004_05.html).
This works in Firefox, Opera and Netscape, but not in good
old IE. The site stays stubbornly flush left in the IE browser
window.
The site with the problem is
http://www.sueharrington.co.uk/catalog/
I have made it work in all browsers with another site which I
copied the CSS and HTML from and I can't see the difference, other
than the one <div> is enclosing oscommerce and another isn't.
The CSS I use is
#holder {
width:770px;
text-align:left;
margin:0 auto;
padding:0px;
background-color:#FFFFFF;
with the following html
<body marginwidth="0" marginheight="0" topmargin="0"
bottommargin="0" leftmargin="0" rightmargin="0">
<div id="holder"> <!--This Div contains the entire
page -->
----- HTML or PHP Statements Here
</div>
</body>
Anyone have any ideas or know any nifty IE hacks to get round
this problem?
Many thanks,
Neil> The CSS I use is
>
> #holder {
> width:770px;
> text-align:left;
> margin:0 auto;
> padding:0px;
> background-color:#FFFFFF;
> }
>
Add to this -
body { text-align:center; }
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Enscott" <[email protected]> wrote in
message
news:eccg73$gn0$[email protected]..
> Hi,
>
> I am implementing OScommerce using stylesheets to centre
the oscommerce
> page
> in the browser.
>
> I am using a #holder (wrapper) div around the whole BODY
contents with
> left
> and right margins set to "auto"
>
> (This is based on Adrian Senior's article on this site
>
http://www.adobe.com/devnet/dreamweaver/articles/css_concepts_mx2004_05.html).
>
>
> This works in Firefox, Opera and Netscape, but not in
good old IE. The
> site
> stays stubbornly flush left in the IE browser window.
>
> The site with the problem is
>
>
http://www.sueharrington.co.uk/catalog/
>
> I have made it work in all browsers with another site
which I copied the
> CSS
> and HTML from and I can't see the difference, other than
the one <div> is
> enclosing oscommerce and another isn't.
>
> The CSS I use is
>
> #holder {
> width:770px;
> text-align:left;
> margin:0 auto;
> padding:0px;
> background-color:#FFFFFF;
> }
>
> with the following html
>
> <body marginwidth="0" marginheight="0" topmargin="0"
bottommargin="0"
> leftmargin="0" rightmargin="0">
> <div id="holder"> <!--This Div contains the
entire page -->
>
> ----- HTML or PHP Statements Here
>
> </div>
> </body>
>
>
> Anyone have any ideas or know any nifty IE hacks to get
round this
> problem?
>
> Many thanks,
>
> Neil
> -
How can I use the join condition for this query?
Hi, i am using a query which has a sun query in it, wen i am running tat query it is giving 9332 records, I changed the sub query logic and given an inner join, but it is giving only 4476 records. So, I changed it to left join but it is giving more records
than usual now, say 10033 records.
This is the code which is giving records 9332, which is correct
select distinct
b.SRC_PROV_ID
,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
INTO TINtoSystem
from
RARE.dbo.EDW_MASTER a
Inner Join RARE.dbo.EDW_PROD_ID_XREF b
on a.SMG_ID = b.SMG_ID
where SRC_PLATFORM_CD = 'TX'
and a.SMG_ID in
select distinct
SMG_ID
from RARE.dbo.EDW_PROD_ID_XREF
where SRC_PLATFORM_CD = 'TX'
and SRC_PROV_ID in (select q.PROV_TAX_ID from PACT.dbo.SQS_EDW_Source q)
I have changed this code by giving inner join as, but its not giving the exact records of 9332,
select distinct
b.SRC_PROV_ID
,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
INTO TINtoSystem
from
RARE.dbo.EDW_MASTER a
Inner Join RARE.dbo.EDW_PROD_ID_XREF b
on a.SMG_ID = b.SMG_ID
Inner Join Pact.dbo.SQS_EDW_Source q
on b.SRC_PROV_ID = q.PROV_TAX_ID
where b.SRC_PLATFORM_CD = 'TX'
Can anyone tell, where it is missing, I used left join also but its giving more records then, need helpHi, If you insist inner joins then please try
SELECT DISTINCT
b.SRC_PROV_ID
,COALESCE(a.SYSTEM_NAME, a.CTRCT_GRP_NAME, a.PROV_SMG_NAME) AS SYSTEM_NAME
INTO TINtoSystem
FROM
RARE.dbo.EDW_MASTER a
Inner Join RARE.dbo.EDW_PROD_ID_XREF b
on a.SMG_ID = b.SMG_ID
inner join
select distinct
c.SMG_ID
from RARE.dbo.EDW_PROD_ID_XREF as c
where SRC_PLATFORM_CD = 'TX'
and exists (select * from PACT.dbo.SQS_EDW_Source q where c.SRC_PROV_ID=q.PROV_TAX_ID)
) as d on a.SMG_ID = d.SMG_ID
where b.SRC_PLATFORM_CD = 'TX' -
How deploy a transition using complex condition by OMB+?
Hello,
I can’t deploy a process flow package using OMB+
But, it doesn't work because of a transition with complex condition.
I will try to explain my problem on the best :
I am working in OWB 10g R2.
I developped several process flow of this modele:
- I have a package module named : PFL_MODULE
- In this package module, I have created four process flow package :
PPK_ODS
PPK_DWH
PPK_DMT
PPK_SCH
In each package I have three or four process flow.
To deploy it, I use OMB+
I created this script :
+# move to apropriate context+
OMBCC '/$project_name/PFL_MODULE'
+puts "Current context is [OMBDCC]"+
+puts ""+
+# Connect to the default control center+
+puts "Connect to the default control center"+
+puts ""+
+OMBCONNECT CONTROL_CENTER+
+puts "Deploying workflows :"+
OMBCREATE TRANSIENT DEPLOYMENT_ACTION_PLAN 'PROCESS_FLOW_PACKAGES' \
ADD ACTION 'PPK_ODS' \
SET PROPERTIES (OPERATION) VALUES ('CREATE') \
SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_ODS' \
ADD ACTION 'PPK_DWH' \
SET PROPERTIES (OPERATION) VALUES ('CREATE') \
SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_DWH' \
ADD ACTION 'PPK_DMT' \
SET PROPERTIES (OPERATION) VALUES ('CREATE') \
SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_DMT' \
ADD ACTION 'PPK_SCH' \
SET PROPERTIES (OPERATION) VALUES ('CREATE') \
SET REFERENCE PROCESS_FLOW_PACKAGE 'PPK_SCH' \
OMBDEPLOY DEPLOYMENT_ACTION_PLAN 'PROCESS_FLOW_PACKAGES'
OMBDROP DEPLOYMENT_ACTION_PLAN 'PROCESS_FLOW_PACKAGES'
+puts [OMBCOMMIT]+
+puts "Workflows are deployed"+
when I tested it, everything worked !
But, recently, I had to modify one of my process flow. This process flow is in PPK_SCH package (and it named PRC_SCH_FULL)
I had to change a transition using an enumerated condition (SUCCESS, ERROR) by a transition using a complex condition.
My condition is very simple, I test one of my variable ("PRC_SCH_FULL"."VAR_END" =1)
When I deploy my new process flow by the control center in OWB it works.
But, when I deploy it by my script I have an error message :
*OMB05602 : An unknown Deployment error has occured for Object Type DeploymentContextImpl.generate WBGeneratedObject[] is null or length 0 for PPK_SCH.*
I'm sure the problem is in transition because when I put an enumerted condition back, it works again.
So, How can I do to deploy my process flow package that contains a process flow with complex condition in a transition?
thank you in advance for any suggestions.
Jue.
Edited by: Jue on 20 juil. 2011 05:06If I get what you said, then you have 2 enumerated and one complex condition?
Rules for Valid Transitions
For a transition to be valid, it must conform to the following rules:
All activities, apart from START and END, must have at least one incoming transition.
Only the AND and OR activities can have more than one incoming transition.
Only a FORK activity can have more than one unconditional outgoing transition.
A FORK activity can have only unconditional outgoing transitions.
An activity that has an enumerated set of outcomes must have either an outgoing transition for each possible outcome or an unconditional outgoing transition.
An activity can have zero or more outgoing complex expression transitions.
An activity, with an outgoing complex expression transition, must have an unconditional outgoing transition.
An END_LOOP transition must have only one unconditional transition to its associated FOR_LOOP or WHILE_LOOP activity.
The transition taken by the exit outcome of a FOR_LOOP or WHILE_LOOP must not connect to an activity that could be carried on as a result of the "loop." -
Set complex condition of process flow transition by OMB skript
Hi,
i would like to set a complex condition for a process flow transition with OMB+.
If i use:
OMBALTER PROCESS_FLOW 'somename' ADD TRANSITION 'yyy' FROM ACTIVITY 'a' to 'b' SET PROPERTIES (TRANSITION_CONDITION) VALUES ('some complex condition')
the skript sets the condition but the radiobutton within the transition condition editor still point to 'Enumerated Condition' and the complex condition editor sheet, where my condition should be printed is empty. But the Object details within the Process editor shows my condition correct.
We use 11gR1 11.1.0.7.0 (OWB & DB).
Has anybody a clue if i am able to set the transitioncondition to COMPLEX ? Or is it a bug ?
Your Help is appreciated, thanks
ThomasHi Thomas
You use the property COMPLEX_CONDITION on the activity for complex transition condition expressions.
Cheers
David -
Two Different conditions for BED in excise invoice
Dear Team,
I am using condition type JEXP condition type for automatic condition and for excise invoice, but for some specific cases my client wants to use one more condition for BED as manual condition where he want to enter BED amount as manual and ECS and HECS should calculate automatically on manual BED. He wants that other procedure with JEXP should be continue parallaly. But during the creation of excise invoice only one value is being passed to excise invoice for BED as I can maintain only one condition for "maintain excise defaults." In manual scenerio my ECS and HECS values are reflecting in excise invoice but BED is zero because at the place of BED JEXP is maintained in excise defaults. Kindly suggest how can I use both the scenerios to create excise invoice.
Regards,
NeerajHi
I have faced this problem in each of my projects. So sharing my idea of work around.
Create a Condtion type - ZMAN (Manual excise fixed amount ) and ZMEX for manual excise in percentage and adjust his just above you Excise condtion type .
100. ZMAN Statistical (Manual excise in Fixed Amount) Created Routine - 901
105 ZMEX Statistical (Manual excise in percentage ) Created Routine 901
110 JEXP (BED)
*If ZMAN is maintained then the KBETR (Amount) is copied to JEXP
*} INSERT
FORM FRM_KONDI_WERT_901.
*{ INSERT MCDK900627 1
*FORM FRM_KONDI_WERT_901.
DATA : ZMAN_KBETR TYPE KOMV-KBETR,
ZMAN_KWERT TYPE KOMV-KWERT,
ZMEX_KWERT TYPE KOMV-KWERT.
DATA : FLAG_ZMAN(1),
FLAG_ZMEX(1).
READ TABLE XKOMV WITH KEY KSCHL = 'ZMAN'.
IF SY-SUBRC = 0.
FLAG_ZMAN = 'X'.
ZMAN_KBETR = XKOMV-KBETR.
ZMAN_KWERT = XKOMV-KWERT. " CHANGE ON 3.7.2008
ENDIF.
READ TABLE XKOMV WITH KEY KSCHL = 'ZMEX'.
IF SY-SUBRC = 0.
FLAG_ZMEX = 'X'.
ZMEX_KWERT = XKOMV-KWERT.
ENDIF.
READ TABLE XKOMV WITH KEY KSCHL = 'JEXP'.
IF SY-SUBRC = 0.
IF FLAG_ZMAN = 'X' AND FLAG_ZMEX = ' ' .
IF ZMAN_KBETR > 0.
XKWERT = ZMAN_KWERT. "CHANGE ON 3.7.2008
XKOMV-KBETR = ZMAN_KBETR.
MODIFY XKOMV INDEX SY-TABIX.
ENDIF.
ELSEIF FLAG_ZMAN = ' ' AND FLAG_ZMEX = 'X' .
XKWERT = ZMEX_KWERT.
ELSEIF FLAG_ZMAN = 'X' AND FLAG_ZMEX = 'X' .
XKWERT = XKOMV-KWERT.
MESSAGE 'Maintain either ZMEX or ZMAN' type 'S'.
ENDIF.
ENDIF.
*break abap.
*ROUNDING
READ TABLE XKOMV WITH KEY KSCHL = 'JEXP'.
if sy-subrc = 0.
if komk-vkorg = 2000 and ( komk-vtweg = '10' or komk-vtweg = '30' ).
exit.
else.
DATA : BEFORE_ROUND TYPE PC207-BETRG,
AFTER_ROUND TYPE PC207-BETRG.
BEFORE_ROUND = XKWERT .
CALL FUNCTION 'HR_IN_ROUND_AMT'
EXPORTING
AMOUNT = BEFORE_ROUND
RNDOFF = 100
RNDLMT = 'N'
IMPORTING
RETAMT = AFTER_ROUND
DLTAMT =
XKWERT = AFTER_ROUND.
endif.
*endif.
*} INSERT
ENDFORM.
Here we have created a routine 901 - So when i put any value in say ZMAN / ZMEX , the same vaule gets copied in the JEXP my baisc excise condition type . So when i post only JEXP is posted.
At any point of time - only one condition type will be used - so in this we have written the same code.
make sure you create them as Manual Statistical item condition , where the user has to press F4 and pick any one when he want to use this manual concept.
You can ask you ABAPer to create this routine and write and map the above logic.
The value of manual excise conition should get copy to you main excise condition. Also followed up with rounding of the values
This will work definately.
Thanks................Rishi -
Display Conditions for Configurator OptionFeature Options - R12.1
Here is a test scenario that I am using. This is for R12.1
1. I have a list of options under a Option feature
2. These options are to be displayed as drop down list in the configurator user interface as the min and max selections allowed is 1. i.e. options are mutually exclusive.
3. In configurator user interface, I have to display only the options that are available for user selection. i.e. Options that are either excluded by a rule of by an configurator extension, should not be displayed in the UI.
Now, here is the problem.
I am using the display condition for the drop down feature as below.
List Item Display Condition List Item Model Node.SelectionState IsNot Excluded
The above display condition removes the options that are excluded by a configurator rule (like logic rule or a CDL). But is does not remove the options from the list that are excluded by a configurator extension.
I tried with all different display condition approaches. But I was unsuccessful in not displaying both type of options that are exculded by configurator rule and configurator extension.
If anyone could help me achieve this, it would be of great help.
NOTE: The logical state of option excluded by configurator extension is either FALSE or UFALSE.
The logical state of option excluded by configurator rule is LFALSE.
Hope the above explaination is readable. Let me know if you have any questions.
Thanks,
user9356335Hi Jason,
Thanks for your reply.
yes I have tried using LFALSE (as you have mentioned in your message - (IOption)opt.setState(IState.LFALSE); ).
But we cannot set the logical state of an option to LFALSE, LTRUE, UFALSE, UTRUE.
we can only set it to FALSE, TRUE or TOGGLE.
When I tried to set the state of the option to LFALSE, it throws an error saying - logical state of an option can only be set to FALSE, TRUE or TOGGLE.
- user9356335 -
Terms and conditions for InDesign plugin for B2B?
Hello Community,
we are developing a commercial plugin for Adobe InDesign for B2B.
For this purpose we need some information about how to write terms and conditions for Adobe InDesign plugins. Which requirements should we write in the terms and conditions? If Adobe InDesign CC is expired, the plugin can’t also be used? Are there anybody who have useful terms and conditions for such plugins or which plugin company use some useful terms and conditions?
regards,
RaymondThere are not many developers here. Try the InDesign SDK forum where you'll find more developers.
-
Terms and conditions for plugin for B2B?
Hello Community,
we are developing a commercial plugin for Adobe InDesign for B2B.
For this purpose we need some information about how to write terms and conditions for Adobe InDesign plugins. Which requirements should we write in the terms and conditions? If Adobe InDesign CC is expired, the plugin can’t also be used? Are there anybody who have useful terms and conditions for such plugins or which plugin company use some useful terms and conditions?
regards,There are not many developers here. Try the InDesign SDK forum where you'll find more developers.
-
Documetations about the complex interface for business partner
Hi Folks,
did anyone knows, were I can find some documentations about "how to use the complex interface for business partner"?
Kind regards
ThomasThe above problems through Notes: 810634 has been resolved!
The return message is "Instance BJXE001005 belonging to object type BusinessPartnerFS was created".
But the BP "BJXE001005" has not been established in CRM.
How to i?
When i use parameters "roles", the return message is "No update is defined for BP role"?
How to i?
Thanks you!
Do you have any examples I reference to the code?
Thanks a lot.
Edited by: Ken.Li on Apr 13, 2008 9:05 AM
Edited by: Ken.Li on Apr 13, 2008 10:17 AM
Edited by: Ken.Li on Apr 13, 2008 10:33 AM -
Hi, does anybody know a function, bapi or table where I can get the conditions for a item position in an sales order?
ThanksHi,
You can get the records from the table KONV.
Pass VBAK-KNUMV to KONV-KNUMV
VBAP-POSNR to KONV-KPOSN
Thanks,
Naren -
Which table i can use to find out the condition type in PO item ?
Hello, erveryone. Which table i can use to find out the condition type in PO item ? Thank you.
Xinzhou.hi
The Table name used to find the Tax Values are
KOMV: Pricing Communications-Condition Record
KONV: Conditions (Transaction Data)
From the above tables you can refer the fields below.
KAWRT
KBETR
for excise check table J_1IEXCHDR for header
J_1IEXCDTL for item excise
Fetch the corresponding records based on the field
KNTYP
regards
kunal -
Table to be used to fetch conditon value of a condition type
Hi Friends
I need to do some enhancements to a report where in I have to add a new column which adds up the netvalue of the invoice ( netwr) with the condition value of a tax condition ( octori ). To fetch the condition value of this conditon which is the appropriate table to be used ? Usually KONV is used but this is leading to slow performance. Is there any alternative table ? Can KONP be used ?
Regards
MaheshHi
Pl find below tables related to pricing
KOMK,KOMV,KOMP
KONV Conditions for Transaction Data
KONP Conditions for Items
KOND Conditions (Data)
KONH Conditions (Header)
KONM Conditions
T684 Condition Exclusion Groups
T684G Condition Exclusion Groups: Condition Types
T684S Condition Exclusion: Procedure Assignment
T689 Download Profile for the Conditions
T689K Reference: Download Profile - Pricing Procedures
Axxx- condition record tabel
eg: A304- is table for condition record for material with release status
A305, a306,a074
A000 Condition Table for Pricing
I have not checked any of them. Dont know whether it will help you.
regards -
DataStoreException for multi-table inheritence using numeric indicator value
I am using multi-table inheritance with Kodo 2.5.5
Relevant kodo.properties are:
com.solarmetric.kodo.PersistentTypes=com.letsys.erespond.business.model.netw
ork.PowerTransformer,com.letsys.erespond.business.model.network.Device,com.l
etsys.erespond.business.model.network.ElectricalDevice,com.letsys.erespond.b
usiness.model.network.Switch
javax.jdo.PersistenceManagerFactoryClass=com.solarmetric.kodo.impl.jdbc.JDBC
PersistenceManagerFactory
com.solarmetric.kodo.impl.jdbc.DefaultSubclassProviderClass=com.solarmetric.
kodo.impl.jdbc.ormapping.IntegerSubclassProvider
I have given each of my PC classes s a numeric subclass indicator value (to
improve join performance)
e.g.
<extension vendor-name="kodo" key="subclass-indicator-value" value="1">
</extension>
Here is my query code, the exception is at the end of the email:
Extent e = pm.getExtent(Device.class, true);
Query q = pm.newQuery(e, "active == p1");
q.declareParameters("int p1");
Collection c = (Collection)q.execute(new Integer(1));
Iterator iter = c.iterator();
while (iter.hasNext()) {
Device d = (Device)iter.next();
System.out.println("name="+d.getName());
NOTE: The above code works if I first do a similar query, but specify the
subclass in the pm.getExtent()
It seems to me that the persistent classes listed in kodo.properties are not
getting loaded.
I also get this from debug on startup
421 DEBUG [TestRunner-Thread] kodo.Runtime -
[email protected]067:
registering 1 classes: [class
com.letsys.erespond.business.model.network.Device]
421 DEBUG [TestRunner-Thread] kodo.MetaData - found JDO resource
Device.jdo for com.letsys.erespond.business.model.network.Device at
file:/C:/Dev/projectm/classes/com/letsys/erespond/business/model/network/Device.jdo
421 INFO [TestRunner-Thread] kodo.MetaData -
com.solarmetric.kodo.meta.JDOMetaDataParser@d12eea: parsing source:
file:/C:/Dev/projectm/classes/com/letsys/erespond/business/model/network/Device.jdo
I would have expected it to register all my PC classes at this stage.
Any ideas ???
Regards,
Chris.
[junit] Testcase: testInheritenceQuery took 9.747 sec
[junit] Caused an ERROR
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "null",
the type registered for subclass indicatorvalue "3", is re
ferenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] com.solarmetric.kodo.runtime.FatalDataStoreException:
com.solarmetric.kodo.runtime.DataStoreException: Type "null", the
type registered for subclass indicatorvalue "3", is referenced in the
database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "null",
the type registered for subclass indicatorvalue "3", is re
ferenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(LazyRes
ultList.java:217)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(LazyResultList.jav
a:142)
[junit] at java.util.AbstractList$Itr.next(AbstractList.java:416)
[junit] at
com.solarmetric.kodo.runtime.objectprovider.ResultListIterator.next(ResultLi
stIterator.java:49)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.ResultListFactory.createResultList(Re
sultListFactory.java:82)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1138)
[junit] at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
[junit] at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
[junit] at
com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:501)
[junit] at
com.letsys.erespond.business.model.network.DeviceAppTest.testInheritenceQuer
y(DeviceAppTest.java:32)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
[junit] NestedThrowablesStackTrace:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "null",
the type registered for subclass indicatorvalue "3", is re
ferenced in the database, but does not exist.
[junit] NestedThrowables:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.IntegerSubclassProvider.getType(Int
egerSubclassProvider.java:214)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getType(Subcla
ssProviderImpl.java:97)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadPrimaryMappings(Cl
assMapping.java:1060)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStore
Manager.java:374)
[junit] at
com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerI
mpl.java:215)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(Pers
istenceManagerImpl.java:1278)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(Persistenc
eManagerImpl.java:1196)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.createFromResultSet(
JDBCStoreManager.java:967)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager$2.getResultObject(JD
BCStoreManager.java:1146)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(LazyRes
ultList.java:199)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(LazyResultList.jav
a:142)
[junit] at java.util.AbstractList$Itr.next(AbstractList.java:416)
[junit] at
com.solarmetric.kodo.runtime.objectprovider.ResultListIterator.next(ResultLi
stIterator.java:49)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.ResultListFactory.createResultList(Re
sultListFactory.java:82)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1138)
[junit] at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
[junit] at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
[junit] at
com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:501)
[junit] at
com.letsys.erespond.business.model.network.DeviceAppTest.testInheritenceQuer
y(DeviceAppTest.java:32)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
[junit] NestedThrowablesStackTrace:
[junit] com.solarmetric.kodo.runtime.DataStoreException: Type "3" is
referenced in the database, but does not exist.
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.IntegerSubclassProvider.getType(Int
egerSubclassProvider.java:207)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.SubclassProviderImpl.getType(Subcla
ssProviderImpl.java:97)
[junit] at
com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.loadPrimaryMappings(Cl
assMapping.java:1060)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.initialize(JDBCStore
Manager.java:374)
[junit] at
com.solarmetric.kodo.runtime.StateManagerImpl.loadInitialState(StateManagerI
mpl.java:215)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectByIdFilter(Pers
istenceManagerImpl.java:1278)
[junit] at
com.solarmetric.kodo.runtime.PersistenceManagerImpl.getObjectById(Persistenc
eManagerImpl.java:1196)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.createFromResultSet(
JDBCStoreManager.java:967)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager$2.getResultObject(JD
BCStoreManager.java:1146)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.instantiateRow(LazyRes
ultList.java:199)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.LazyResultList.get(LazyResultList.jav
a:142)
[junit] at java.util.AbstractList$Itr.next(AbstractList.java:416)
[junit] at
com.solarmetric.kodo.runtime.objectprovider.ResultListIterator.next(ResultLi
stIterator.java:49)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.ResultListFactory.createResultList(Re
sultListFactory.java:82)
[junit] at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:1138)
[junit] at
com.solarmetric.kodo.impl.jdbc.query.JDBCQuery.executeQuery(JDBCQuery.java:1
26)
[junit] at
com.solarmetric.kodo.query.QueryImpl$DatastoreQueryExecutor.executeQuery(Que
ryImpl.java:1565)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeQueryWithMap(QueryImpl.java:685)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:545)
[junit] at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:531)
[junit] at
com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:501)
[junit] at
com.letsys.erespond.business.model.network.DeviceAppTest.testInheritenceQuer
y(DeviceAppTest.java:32)
[junit] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[junit] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
[junit] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
..java:25)
[junit] Testcase: testInheritenceQuery
[junit] TEST com.letsys.erespond.business.model.network.DeviceAppTest
FAILEDMarc,
All of my PC classes are in the result of the api call you suggested:
[junit] Kodo type[0] =
com.letsys.erespond.business.model.network.PowerTransformer
[junit] Kodo type[1] = com.letsys.erespond.business.model.network.Device
[junit] Kodo type[2] =
com.letsys.erespond.business.model.network.ElectricalDevice
[junit] Kodo type[3] = com.letsys.erespond.business.model.network.Switch
However, when doing the query, it only seems to read the parent jdo file
[junit] (kodo.MetaData 89 )
com.solarmetric.kodo.meta.JDOMetaDataParser@16477d9: parsing source:
file:C:/Dev/projectm/classes/com/letsys/erespond/business/model/network/Device.jdo
When I do a Class.forName() on each of the classes, I see that it loads in
all the .jdo files.
Chris.
"Marc Prud'hommeaux" <[email protected]> wrote in message
news:[email protected]..
Chris-
Strange. It does seem like your PersistentTypes property is not being
used at all.
Can you try casting your pmf to a JDBCPersistenceManagerFactory and
seeing if your types have actually been registered with:
String[] types = pmf.getConfiguration ().getPersistentTypeNames ();
In article <bop53p$a5u$[email protected]>, Chris McCarthy wrote:
Hi Patrick,
Just tried it and yes, doing a Class.forName() on the classes I insert
does provide a work-around.
Any idea what is causing this ?
Regards,
Chris.
"Patrick Linskey" <[email protected]> wrote in message
news:boc31n$7do$[email protected]..
Chris,
What happens if you do a Class.forName() (or just a class reference) to
each of your persistent classes before executing any JDO code?
-Patrick
Marc Prud'hommeaux [email protected]
SolarMetric Inc. http://www.solarmetric.com -
Splitter operator doesnt use multi table inserts in OWB...very very urgent
Hi,
I am using OWB 9i to carry out tranformations. I want to copy the same seuence numbers to the two target tables.
Scenario:
I have a source table source_table, which is connected to a splitter and the splitter is used to dump the records in two target tables namely target1_table and target2_table. I have a sequence which is also an input to the splitter, so that I can have the same sequence number in the the two output groups of he splitter. I then map the sequence number from the two output groups to the two target tables expecting to have the same sequence number in the target tables. But when I see the generated code it creates two procedures and effectively inserts sequencing numbers in the target tables which are not consistent. Please help me so that I have the same sequencing numbers in the target tables which are consistent.
Well the above example works in row based operating mode but not in set based mode. Please give me a valid explanation.
OWB pdf says that splitter uses multi table inserts for multiple targets. After seeing the generated code for set based operations I dont agree to this.
Its very urgent.
thanks a lot in advance.
-SharatHi Mark,
You got me wrong, let me explain you the problem again.
RDBMS oracle 9.2.0.4
OWB 9.2.0.2.8
I have three tables T1,T2 and T3.
T1 is the source table and the remaining two tables T2 and T3 are target tables.
Following are the contents of table T1 -
SQl>select * from T1;
DEPTNAME LOCATIO?N
COMP PUNE
MECH BOMBAY
ELEC A.P
Now I want to populate the two destination tables T2 and T3 with the records in T1.
For this I am using splitter operator in OWB which is suppose to generate multi table inserts, but unfortunately its not doing so when I generate the SQL. There si no "insert all" command in the sql it generates.
What I want is, when I populate T2 and T3 I use a sequence generator and I want the same sequences for T2 and T3 eg.
SQl>select * from T2;
NEXT_VAL DEPTNAME LOCATIO?N
1 COMP PUNE
2 MECH BOMBAY
3 ELEC A.P
SQl>select * from T3;
NEXT_VAL DEPTNAME LOCATIO?N
1 COMP PUNE
2 MECH BOMBAY
3 ELEC A.P
I am able to achieve this when I set the operating mode to ROW BASED. I am not geting the same result when I set the operating mode to SET BASED.
Help me....
-Sharat
Maybe you are looking for
-
Urgent Error while creating UD Connect datasource
Hi Everyone, I'm getting an error when trying to select the UD Connect Source Object. I get error: Errors occurred during extraction of existing UD Connect source objects: UDCADAPTERROR::RSSDK|100|Cannot open the connectio Nº mensagem RSDS_ACCESS031.
-
Location of dhcpd for creation of OSP control server?
What goes here for Solaris 5.10 08/07? I did not find a dhcpd script located anywhere. I found nothing registered in svcadm using svcs -a | grep dhcp. <p> Pete.
-
ICal will not open in 10.5.3
Just upgraded to 10.5.3 and tried to Open iCal and got this error message: "Calendar Cache" could not be moved because you do not have appropriate access privileges for "Calendars". To view or change access privileges, select the item in Finder and C
-
How to change my 'full name' in Mail on iPhone?
I use a me.com address and iCloud. I successfully changed my full name in Mail on my Mac, but won't show up on mail sent from phone.
-
About Communication Channel Parameters
What is Variable substitution (target dir/filename scheme) parameter, Run OS command before Message processing and Run OS command after Message processing parameters in the Communication Channel, where we can use this parameters(i.e which type of sce