Column-map doubt (CMP 2.0)
Hi
weblogic 6.1
CMP 2.0
Oracle 8i
Lets say i have 2 tables called
Company - with companyId as PK
Employee - with empId and companyId as Composite PK
(empId is unique within a company only)...and CompanyId is Fkey to
companyId in Company...
I have 2 relation ship roles for the relationship
Company-Employee (1 to many)
1 - Company-has-Employees
2 - Employee-belongsto-Company
My question is how to form the <weblogic-rdbms-relation> element for
weblogic rdbms descriptor?
I currently use weblogic-rdbms20-persistence-600.dtd ...is there any
for 6.1 ?
Please send a cc of the reply to [email protected]
Thanx
Senthil
Subramaniam
CompanyId is a column of the composite primary key in Employee. CompanyId is
the foreign key in Company.
<weblogic-rdbms-relation>
<relation-name>Company-Employees</relation-name>
<weblogic-relationship-role>
<relationship-role-name>Employee-Belong-To-Company</relationship-role-name>
<column-map>
<foreign-key-column>CompanyId </foreign-key-column>
<key-column>CompanyId </key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
Deepak
Senthil Subramaniam wrote:
Hi
weblogic 6.1
CMP 2.0
Oracle 8i
Lets say i have 2 tables called
Company - with companyId as PK
Employee - with empId and companyId as Composite PK
(empId is unique within a company only)...and CompanyId is Fkey to
companyId in Company...
I have 2 relation ship roles for the relationship
Company-Employee (1 to many)
1 - Company-has-Employees
2 - Employee-belongsto-Company
My question is how to form the <weblogic-rdbms-relation> element for
weblogic rdbms descriptor?
I currently use weblogic-rdbms20-persistence-600.dtd ...is there any
for 6.1 ?
Please send a cc of the reply to [email protected]
Thanx
Senthil
Similar Messages
-
Column-map in weblogic-cmp-rdbms-jar.xml
Hi,
How to specify column-map for the following database tables:
Table1: id,col2,col3. Primary key - id.
Table2: m_id,description,col4,col5. Primay key - (m_id,col4).
The relationship I specified is table1-has-many-table2. This is a 1 to m relation
and
Table1.id = Table2.m_id.
I specified the following column-map
<column-map>
<foreign-key-column>m_id</foreign-key-column>
<key-column>id</key-column>
</column-map>
But the server is throwing an exception that all the columns in table2 should
me mapped.
But in this case, I can join the tables with just id only. What should I specify
for col4 map?.
I can just reverse the mapping, but I am trying to test the boundaries of weblogic
server.
Is this case handled in weblogic server implementation?.
I am testing relationship-role-map for ejb2.0 on weblogic server8.1 beta version.
Thanks,
SathishHello Sathish,
Glad to help! Have a wonderful week.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Sathish Kandacharam" <[email protected]> wrote:
>
Hi Ryan,
Thanks alot. That example helped alot.
Thanks,
Sathish
"Ryan LeCompte" <[email protected]> wrote:
Hello Sathish,
Please refer to the sample code that comes packaged with BEA WebLogic
Server for
examples of how the weblogic-cmp-rdbms-jar.xml file should look forall
of the
various relationships. In particular, look at the Bands example.
Best regards,
Ryan LeCompte
[email protected]
http://www.louisiana.edu/~rml7669
"Sathish Kandacharam" <[email protected]> wrote:
Hi,
How to specify column-map for the following database tables:
Table1: id,col2,col3. Primary key - id.
Table2: m_id,description,col4,col5. Primay key - (m_id,col4).
The relationship I specified is table1-has-many-table2. This is
a
1 to m relation
and
Table1.id = Table2.m_id.
I specified the following column-map
<column-map>
<foreign-key-column>m_id</foreign-key-column>
<key-column>id</key-column>
</column-map>
But the server is throwing an exception that all the columns intable2
should
me mapped.
But in this case, I can join the tables with just id only. Whatshould
I specify
for col4 map?.
I can just reverse the mapping, but I am trying to test the boundaries
of weblogic
server.
Is this case handled in weblogic server implementation?.
I am testing relationship-role-map for ejb2.0 on weblogic server8.1
beta version.
Thanks,
Sathish -
Mapping a CMP bean to more than one table
Hello,
I like to map a CMP bean to more than one table. I am using wlserver7.0 SP2. I
have a VendorBean with a CMP field "comments" mapped to VENDOR_COMMENTS table.
All other CMP fields in VendorBean are mapped to VENDOR table. Below is the snippet
of weblogic-cmp-rdbms-jar.xml:
<weblogic-rdbms-bean>
<ejb-name>VendorBean</ejb-name>
<data-source-name>sweepDataSource</data-source-name>
<table-map>
<table-name>VENDOR</table-name>
<field-map>
<cmp-field>expIndicator</cmp-field>
<dbms-column>VENDOR_EXP_IND</dbms-column>
</field-map>
<field-map>
<cmp-field>vendorId</cmp-field>
<dbms-column>VENDOR_SEQ_KEY</dbms-column>
</field-map>
</table-map>
<table-map>
<table-name>VENDOR_COMMENTS</table-name>
<field-map>
<cmp-field>vendorId</cmp-field>
<dbms-column>VENDOR_SEQ_KEY</dbms-column>
</field-map>
<field-map>
<cmp-field>comments</cmp-field>
<dbms-column>VENDOR_COMMENT</dbms-column>
</field-map>
</table-map>
As you can see, "vendorId" is the primary key cmp field mapped to VENDOR_SEQ_KEY
column in both tables. The relationship between the table rows are 1 to 1. When
I run ejbc, I get the exception below:
[ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ Asserti
on violated ]
[ejbc] at weblogic.utils.Debug.assertion(Debug.java:74)
[ejbc] at weblogic.ejb20.cmp.rdbms.RDBMSBean.processRole(RDBMSBean.java
:1389)
[ejbc] at weblogic.ejb20.cmp.rdbms.RDBMSBean.processDescriptors(RDBMSBe
an.java:1105)
[ejbc] at weblogic.ejb20.cmp.rdbms.Deployer.readTypeSpecificData(Deploy
er.java:299)
[ejbc] at weblogic.ejb20.persistence.PersistenceType.setTypeSpecificFil
e(PersistenceType.java:490)
[ejbc] at weblogic.ejb20.persistence.PersistenceType.setupDeployer(Pers
istenceType.java:407)
[ejbc] at weblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:11
4)
[ejbc] at weblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSourc
es(EJB20CMPCompiler.java:64)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:22
3)
[ejbc] at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3
44)
[ejbc] at weblogic.ejbc20.runBody(ejbc20.java:470)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:126)
[ejbc] at weblogic.ejbc20.main(ejbc20.java:711)
But if I put the "comments" <field-map> inside the VENDOR <table-map> and get
rid off the <table-map> for VENDOR_COMMENTS, I was able to run ejbc. Of course,
I get the run time exception during deployment because, there is no column called
"VENDOR_COMMENT" in VENDOR table. Please help me. Thanks a million.Wrong newsgroup, needs to go to one of the ejb newsgroups.
mbg
"Sai S Prasad" <[email protected]> wrote in message
news:[email protected]...
>
Hello,
I like to map a CMP bean to more than one table. I am using wlserver7.0SP2. I
have a VendorBean with a CMP field "comments" mapped to VENDOR_COMMENTStable.
All other CMP fields in VendorBean are mapped to VENDOR table. Below isthe snippet
of weblogic-cmp-rdbms-jar.xml:
<weblogic-rdbms-bean>
<ejb-name>VendorBean</ejb-name>
<data-source-name>sweepDataSource</data-source-name>
<table-map>
<table-name>VENDOR</table-name>
<field-map>
<cmp-field>expIndicator</cmp-field>
<dbms-column>VENDOR_EXP_IND</dbms-column>
</field-map>
<field-map>
<cmp-field>vendorId</cmp-field>
<dbms-column>VENDOR_SEQ_KEY</dbms-column>
</field-map>
</table-map>
<table-map>
<table-name>VENDOR_COMMENTS</table-name>
<field-map>
<cmp-field>vendorId</cmp-field>
<dbms-column>VENDOR_SEQ_KEY</dbms-column>
</field-map>
<field-map>
<cmp-field>comments</cmp-field>
<dbms-column>VENDOR_COMMENT</dbms-column>
</field-map>
</table-map>
As you can see, "vendorId" is the primary key cmp field mapped toVENDOR_SEQ_KEY
column in both tables. The relationship between the table rows are 1 to 1.When
I run ejbc, I get the exception below:
[ejbc] weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[Asserti
on violated ]
[ejbc] at weblogic.utils.Debug.assertion(Debug.java:74)
[ejbc] atweblogic.ejb20.cmp.rdbms.RDBMSBean.processRole(RDBMSBean.java
:1389)
[ejbc] atweblogic.ejb20.cmp.rdbms.RDBMSBean.processDescriptors(RDBMSBe
an.java:1105)
[ejbc] atweblogic.ejb20.cmp.rdbms.Deployer.readTypeSpecificData(Deploy
er.java:299)
[ejbc] atweblogic.ejb20.persistence.PersistenceType.setTypeSpecificFil
e(PersistenceType.java:490)
[ejbc] atweblogic.ejb20.persistence.PersistenceType.setupDeployer(Pers
istenceType.java:407)
[ejbc] atweblogic.ejb20.deployer.CMPInfoImpl.setup(CMPInfoImpl.java:11
4)
[ejbc] atweblogic.ejb20.ejbc.EJB20CMPCompiler.generatePersistenceSourc
es(EJB20CMPCompiler.java:64)
[ejbc] atweblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:22
3)
[ejbc] atweblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:3
44)
[ejbc] at weblogic.ejbc20.runBody(ejbc20.java:470)
[ejbc] at weblogic.utils.compiler.Tool.run(Tool.java:126)
[ejbc] at weblogic.ejbc20.main(ejbc20.java:711)
But if I put the "comments" <field-map> inside the VENDOR <table-map> andget
rid off the <table-map> for VENDOR_COMMENTS, I was able to run ejbc. Ofcourse,
I get the run time exception during deployment because, there is no columncalled
"VENDOR_COMMENT" in VENDOR table. Please help me. Thanks a million. -
Some '???' appeared in the LOV Column Mapping window ...only
Hi,
I installed the Forms6i with the patch 12 on Windows XP platform. The installation language is Greek. The only problem i have faced up with the installation is the appearance of some question marks in LOV Column Mapping window ... instead of the Greek translation of the phrases:
Column Names ,
Return Item ,
Display Width ,
Column Title
Is there a specific Windows font that should be installed ....or something else...????
Thanks,,,,
SimYou have to do it from the source code. Click on source, you will find "<xsl:if test="">".
Define your condition in test="/tns:input1=/tns:input2" or check if you source string contains "abcd", i.e. xsl:if test="contain(/tns:source_column1,'abcd')"
hope this will help -
Is it possible to map the cmp fields of the entity bean with out dictionary
Dear sirs,
I have created the EJB project module and WEB Module. Now i have to map the CMP fields of the entity bean to the underlying table. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
I have got some error while mapping an EJB's CMP fields to the table through dictionary. I was actually intended to map 79 fields but it gives an error that more than 64 fields are not allowed while building the dictionary.
1. Can you tell me what could be the possible reason?
2. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
Kindly helo me,
Sudheesh K SHi,
Sudheesh please check up if the below link helps,there are other ways of writing the persistent.xml for container managed entity bean.
http://help.sap.com/saphelp_nw04s/helpdata/en/9b/f695f0c84acf46a4e0b31f69d8a9b7/frameset.htm, probably in the studio you cannot browse through tables not in the java dictionary,but manually editing it may still solve the problem.
Also here is another link that specifies the databases supported by J2EE Engine.
http://help.sap.com/saphelp_nw04s/helpdata/en/66/a5283eeb47b40be10000000a114084/frameset.htm
The below link shows how to specify the database vendor and datasource
http://help.sap.com/saphelp_nw04s/helpdata/en/e1/67fc3ee241ba28e10000000a114084/frameset.htm
Hope you are able to solve the problem.
Do let us know if you come up with the solution.
Regards,
Harish
Message was edited by: HARISH SUBRAMANIAN -
Hi, I am really new to OBIEE 10g.
I already set up a SQL Server 2005 database in Physical and import a view vw_Dim_retail_branch.
The view has 3 columns: branch_id, branch_code, branch_desc.
Now I want to set up the Business model to map this physical table (view).
I created a new Business model
Added new logical table Dim_retail_branch
In the sources, added the vw_Dim_retail_branch as source table.
But in the Logical table source window, column mapping tab, it's blank. I thought it should be able to identify all the columns from vw_Dim_retail_branch, but not. The show mapped columns is ticked.
What should I do here? Manually type each column?HI,
Just you can drag and drop the columns from physical layer to BMM layer.
Select the 3 columns and drag and drop it to the created logical column in BMM layer.
for more reference : http:\\mkashu.blogspot.com
Regards,
VG -
Warning in WD ABAP Table - Master Column Mapping deprecated
Hi ,
I am getting a warning 'Master Column Mapping deprecated' in a WD ABAP component while activating it .
Can anybody suggest what I have to do to solve this issue .
Best Regards
SidHi,
Could you please tell me how to take Row Arrangement in Master Column?
Cheers
Harkesh Dang -
Mapping the CMP Fields with the Database Table using Websphere???
Hi,
How to Map the CMP Fields with the Database Table using Websphere
thru ejb.jar.xml???
Thanks,
JavaCrazyLoverHi,
How to Map the CMP Fields with the Database Table using Websphere
thru ejb.jar.xml???
Thanks,
JavaCrazyLover -
Unable to adjust column mapping
Hi,
I have an LOV where I've 4 items from the same table DONOR_TAB
COLUMN NAMES RETURN ITEM
FIRST_NAME DONOR_TAB_BLK.FIRST_NAME
DONOR_CODE DONOR_TAB_BLK.DONOR_CODE
MIDDLE_NAME DONOR_TAB_BLK.MIDDLE_NAME
LAST_NAME DONOR_TAB_BLK.LAST_NAME
I need to add one more item to the LOV
CITY_NAME DONOR_TAB_BLK.CITY_NAME
All the above reside in the same block DONOR_TAB_BLK
CITY_NAME is in the block where all the previous 4 items reside i.e FIRST_NAME,DONOR_CODE,MIDDLE_NAME,LAST_NAME.
But CITY_NAME belongs to CITY_MASTER_TAB table whereas the previous 4 items belong to DONOR_TAB table.
When i add CITY_NAME to the record group for LOV and compile , i get the message "Unable to adjust column mapping for form ouptut"
Why is this? I know i've committed some error somewhere but i'm not sure where.
Can u help me?Are you using Designer to add LOV to a Module Diagram and then generate a Form?
Or are you using Forms Builder to create record group for LOV? -
Business Layer:Physical Column Mapping-Brackets are removed
Hello,
I use the expression builder to add a formula to the physical column mapping but every time I click OK the brackets are removed.
Is this a bug?
e.g. this:
IFNULL("test".""."et"."V_W"."NUMBERS", 0) *
IFNULL("test".""."et"."V_W"."WEIGHT", 0)
+
IFNULL("test".""."et"."V_WHT", 0) - IFNULL
("test".""."et"."V_W"."ULDT", 0)
turns into:
IFNULL("test".""."et"."V_W"."NUMBERS", 0) *
IFNULL("test".""."et"."V_W"."WEIGHT", 0)
+
IFNULL("test".""."et"."V_WHT", 0) - IFNULL
("test".""."et"."V_W"."ULDT", 0)
Hence the multiplication (ok the above is simplified) happens in the wrong order...Hi Metalray,
This is expected behaviour, though I am not sure why. You can usually get round it by bracketing the other parts of the expression as well, or possily putting the whole thing in brackets. I don't believe there is hard and fast rule about what does work, but I know one can usually get round, you will just have to experiment, sorry.
Regards
Ed -
OBIEE Comments in Column Mapping Formula
Hi Gurus,
I want to insert some comments in the formulas I wrote in the "Logical Column to Physical column mapping" but I'm not able to find out the right sintax to use.
I'm on 11.1.1.3 OBIEE.
Someone could help me?
Thanks in advance
DanieleRight there, you can't place any comments. You can use the Description text box under the General Tab.
J.- -
Org.hibernate.MappingException: broken column mapping
I have 2 tables I'm trying to do a left outer join.
Code:
"FROM Family AS f INNER JOIN f.personVersion AS pv
LEFT OUTER JOIN pv.personDetails"
I see this as a one-to-one relationship between the foreign key in Person_Details and the Primary Key in Person_Version
PERSON_VERSION
KEY TYPE COLUMN NAME REF TABLE REF COLUMN
PK_PERSON_VERSION Primary PERSON_VERSION_ID
FK1_PRSN_VRSN Foreign EVENT_ID EVENT EVENT_ID
PERSON_DETAILS
KEY TYPE COLUMN NAME REF TABLE REF COLUMN
PK_PERSON_DETAILS Primary PERSON_ID, PERSON_VERSION_ID
FK1_PERSON_DTLS Foreign PERSON_VERSION_ID PERSON_VERSION PERSON_VERSION_ID
My Person_Version class :
Code:
@Entity public class PersonVersion extends BaseEntity { private static final long serialVersionUID = 1L; private PersonDetails personDetails; ...... }
My ORM.xml:
Code:
<entity class="com.PersonVersion"> <table name="person_version" /> <sequence-generator name="SEQ" sequence-name="SQ_person_version" allocation-size="1"/> <attribute-override name="id"> <column name="person_version_id" column-definition="NUMBER(38)"/> </attribute-override> <attributes> <basic name="eventId"> <column name="event_id" column-definition="NUMBER(38)" /> </basic> <one-to-one fetch="EAGER" name="personDetails" optional="true"> <join-column name="person_version_id" insertable="false" updatable="false"/> <cascade> <cascade-refresh/> </cascade> </one-to-one> </attributes> </entity>
When I start my server I get the following error:
Reason: javax.persistence.PersistenceException: org.hibernate.MappingException: broken column mapping
for: personDetails.id of: com.PersonVersion
Has anyone run into this issue?SHIBA wrote:
Hi All,
I have two tables Emp and Dept with primary key of Dept table is Foregn key of Emp table
I had created hibernate mapping file ,hibernate configuration file and POJO clasess using Reverse Engineering.
i'm using spring framework for this.
when i try to access dept information on page.
it throws an exception as follows
Initialization of bean failed; nested exception is org.hibernate.MappingException: entity class not found : Emp
My guess is that your hibernate.cfg.xml does not contain an .hbm.xml for both Dept and Emp.
% -
Hi,
I'm evaluating the latest Kodo JDO and am facing some problem mapping our
existing data model.
What we need is a dynamic field to table column mapping, i.e, I would like
to define a Map within my class that can hold an arbitrary number of
column names and values, and have these peristed and/read. I am not sure
how, if at all, if I can use the custom class/field mapping to achieve
this.
Just to make things more clear, I'm looking for a way to implment a
MyClass.getValue(fieldName), and MyClass.setValue(fieldName,fieldValue)
API, where the possible set of of field names can only be known at run
time.
Thanks for any help!!
AnoopThank you. I understand that if I define my own classmapping , override
the insert(), update(), delete and probably a few other functions to
determine the SQL queries, I hould be there. I probably need to define a
FieldMetaData too, right?
How could I go about implementing the lazy loading, or fetch groups,
though? As I see it, the custom class mappings only provide a way to load
the entire data of a JDO.
I realise this is stretching the limits of JDO, but I hope I'm right in
assuming that once the above is in place, it would be possible to leverage
the benefits of caching, clustering and transaction management provided by
the JDO implementation.
Thanks,
Anoop
Patrick Linskey wrote:
You probably could put together a custom field mapping to achieve this.
However, note that this is not a use case that Kodo is intended for.
It is likely that it would be possible to put together a custom field
mapping that would properly deal with queries, and maybe even one that
could handle lazy loading.
-Patrick
On Wed, 04 Jun 2003 15:05:23 +0000, Anoop wrote:
Hi,
I'm evaluating the latest Kodo JDO and am facing some problem mapping
our existing data model.
What we need is a dynamic field to table column mapping, i.e, I would
like to define a Map within my class that can hold an arbitrary number
of column names and values, and have these peristed and/read. I am not
sure how, if at all, if I can use the custom class/field mapping to
achieve this.
Just to make things more clear, I'm looking for a way to implment a
MyClass.getValue(fieldName), and MyClass.setValue(fieldName,fieldValue)
API, where the possible set of of field names can only be known at run
time.
Thanks for any help!!
Anoop
Patrick Linskey
SolarMetric Inc. -
Column Mapping while loading data via tab delimited text file
While attempting to load data I get an error message at the "Define Column Mapping" step. It reads as follows:
1 error has occurred
There are NOT NULL columns in SYSTEM.BASICINFO. Select to upload the data without an error
The drop down box has the names of the columns, but I don't know how to map them to the existing field names, I guess.
By the way, where can I learn what goes in "format" at this same juncture.
Thanks!You can use Insert Into Array and wire the column index input instead of the row index as shown in the following pic:
Just be sure that the number of elements in Array2 is the same as the number of rows in Array1.
Message Edited by tbob on 03-07-2006 11:32 AM
- tbob
Inventor of the WORM Global
Attachments:
Add Column.png 2 KB -
Tablix cells and tablix columns mapping
Hello,
I have lots of tablix within the report and they have many columns as well,i would like to rearrange the tablix cell height and width according to names.when i look at source code of rdl file i can see tablix columns,but i can not see which column mapped
to which cell.is there a way to do this mapping ? Let's say i have col1 in many tablix.and i would like to set 1in for every tablix cells.
Thanks.Hi altuko,
A SQL Server Reporting Services Report Definition Language (RDL) file is validated by using an XML Schema Definition (XSD) file. When we double click .rdl file definitely it will open in XML format if we have not installed Report Builder (or it will
directly be opened with Report Builder). The XML file is correspond to the designed report. So if we want to map the tablix column and tablix cell, we should know the design surface
(To view the report in Report Designer, we can create a new report project and add the .rdl file.) and rdl xml schema definition. For example, we should know the tablix name, column name and cell name, then we can
map them in XML file.
For more information about rdl xml schema definition, please refer to the following document:
http://technet.microsoft.com/en-us/library/ms155062.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Maybe you are looking for
-
Replacing JAR files loaded by custom ClassLoader
Hi all, I am trying to create an auto-updater for a stand alone application, which can look for new versions of relevant jar files on the internet and download them. I have code which will look for newly downloaded versions and can replace the old ja
-
How to populate dynamic internal table fields with data??
Hi Folks, How to assign a particular internal table field to a dynamically assigned internal table? I have an excel sheet, and i upload the excel sheet data into an internal IT_EXLOAD table using FM ALSM_EXCEL_TO_INTERNAL_TABLE Now i created a dynami
-
New VisualHub updater for Lion seems to work great
I downloaded and ran the Visualhub updater for Lion, and converted a .mpg to flash, mpeg-2, h264, and wmv. Unless I am missing something, we have been given quite a gift. Hugh
-
Hi, When i preview my Bi query in potal i am getting following exception : RFC_ERROR_SYSTEM_FAILURE: Exception condition "FAILED" raised Earlier i had already published some query which is working properly, but the new one which i am publishing now i
-
Access to MWSKZ field in F-59 transaction
Hello, sirs and madams. I've got a problem. There's a necessity to fill in a tax code in transaction F-59 (Payment Request), but the screen-field BSEG-MWSKZ is locked for input. I've tried via OB32 specify that field BSEG-MWSKZ should always be avail