How to resolve a many to many relationship in Universe

I have 2 tables
RBU table that contains
Area
Region
Country
Sample Values
Area                       Region     Country
OMD Perimeter     M6     Netherlands
OMD Perimeter     G10     Netherlands
OMD Perimeter     M5     Netherlands
Media Spend Table
Country
Spend
Country          Spend
Neitherlands    50
One region can be contained in more than one Area and Country in turn can be more than one Region
Issue::
When A country is present in more than one Region the Spend is multiplied by the no of regions its present. Where by creating  an issues.
Example
If the user choose OMD Perimeter as the Area Spend for Neitherlands is displayed as 150
Is there any way to resolve this issue
Is there a way to hand this issue in the universe.

Hi Divya,
One region can be contained in more than one Area and Country in turn can be more than one Region
(1) Area -> (M) Region -> (M) Country 
This a Fan Trap.
You can solve it in the universe desinger:
1. If the measures are having aggregate function then check the following option "Multiple SQL Statements for Each Measure"
    should be checked in the parameters.
2. You can create aliases and context to resolve it.
    a. create an alias for the table which is producing multiplied spend.
    b. create a join between the original and the alias table.
    c. define the contexts.
Regars,
Rohit

Similar Messages

  • How to resolve many-to-many join by 2 one-to-many joins

    Hi,
       I was asked many times how to resolve many to many relationship between two tables. I read to use 2 one -to- many relationships to resolve this. Can some expalin me when many to many relationship occurs between two tables and how to reslove them with practicle examples. Is there any article on this?
    Regards,
    Nanda Kishore

    Hi,
    Please check below link.
    http://www.forumtopics.com/busobj/viewtopic.php?p=859029&sid=20d79e3df07b0d8b41aadfbd902bb6b2
    http://blog.oaktonsoftware.com/2011/04/bridge-tables-and-many-to-many.html
    Thanks,
    Amit

  • How to resolve many fact tables and Dimensions tables

    Hi,
    The scenario is we have many facts and dimension tables. Based on some conditions one measure from one fact will be divided by another fact measure. I have encoutered with many errors like " Unable to navigate .... " ? How to resolve these errors and reduce many to few ? ( I assume creating logical tables, but is there any other alternatives ? )
    thanks
    Suresh

    Suresh,
    I assume that you know how to create a single logical fact from n-physical facts, ie only if the fact tables are related. Then join all the conformed dimensions to this single Logical table using a join in the Business Model layer. Remember to set the mappings in the LTS. All if you have any hierarchies please set the aggregation level for those.
    - Red

  • How to create ViewModel in an MVVM application using entity framework where database has many-to-many relationship?

    I have started developing a small application in WPF. Since I am completely new to it, to start with I took a microsoft's sample available at
    Microsoft Sample Application and following the pattern of the sampke I have been so far successful  in creating four different views for their corresponding
    master tables. Unfortunately, I have got stuck up as the sample does not contain pattern for creating ViewModel when there is a many-to-many relationship in the database. In my application, I have the following data structure:
    1. Table Advocate(advId, Name)
    2. Table Party (partyId, Name)
    3 Table Case (caseId, CaseNo)
    4. Link Table Petitioner (CaseId, PartyId)
    5. Link Table Respondent (CaseId, PartyId)
    6. Link Table EngagedAdvocate(CaseId, advId)
    7. Link Table EngagedSrAdvocate(CaseId, advId)
    In the scenario above, I am a bit confused about how to go forward creating the required ViewModel which would render me to have multiple instances of Petitioners, Respondents, Advocates and SrAdvocates.
    Please explain details in step by step manner considering that whatever work I have completed so far is a replica of Microsoft's sample referred above. I would also like to mention that I have developed my application
    using VB.net. So please provide solution in vb.net.
    After getting many-to-many relationship introduced into my application, it would achieve one level above the sample application and I would like to share with the community so that it could be helpful to many aspiring developers seeking help with MVVM.

    Hi ArunKhatri,
    I would suggest you referring to Magnus's article, it provides an example of how you could display and let the user edit many-to-many relational data from the Entity Framework in a dynamic and data-bound DataGrid control in WPF:
    http://social.technet.microsoft.com/wiki/contents/articles/20719.wpf-displaying-and-editing-many-to-many-relational-data-in-a-datagrid.aspx
    You can learn how to design the ViewModel and the relationship between the entities.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error saying "this ID has been authorised too many times" , how to resolve ASAP?

    Error saying "this ID has been authorised too many times" , how to resolve ASAP?

    Adobe Live Chat: http://www.adobe.com/support/chat/ivrchat.html
    They can reset your authorizations, and then you must reauthorize any devices you still need.
    (Unfortunately, Adobe haven’t got round to an admin website for viewing and editing authorizations.)
    Some of the representatives haven't been properly trained and don't know what to do (and claim there is nothing they can do);
    in that case the only way seems to be to give up that chat and try another session hoping for a properly trained representative.
    If your problem is with another device using Overdrive, Bluefire, Aldiko or similar third party app, it is recommended not to mention that app when on the chat, just mention that you have run out of authorizations  (E_ACT_TOO_MANY_ACTIVATIONS) .  Thanks to AJP_Bear for that tip.

  • How to design many to many relationship in the fact and dimension

    There is a problem in my project what is the subject.And i wanna know how to implement in owb.I use the warehouse builder 10. Thanks.

    You may design and load whatever db model you want to.
    But If you set a unique key, you may find some integrity issues. I wouldn't do a many to many relationship between facts and dimensions. This could cause you lots of headaches when users start to submit queries using this tables. You'll probably face performance issues.
    Regards,
    Marcos

  • How can I establish many to many unidirectional relationship?

    Hi, EJB Fans!
    I am an ejb fan too.
    This time I am learn ejb2.0 and find very funny in cmr. I think it is a good idea and can do manythings we cann't do or difficult with ejb1.1.
    But in many to many relationship, I don't know how to give my tables to entity A and entity B. How can I define tables to make A contains related Bs' information? And so do B. But i think make this table is difficult, because we don't know exactly how many should contains? And this is an examples:
    Difine entity A as User, and B as roles such as Administration, user, power user, as we often used in network. A user can have many roles, and roles can allocated to many roles.
    Another examples is entity A as person, and B as Department. B container A, and A can join many department as he or she can.
    B can find A(s) with which clues?? Methods like this java.util.Collection getAs()
    , this collection how can ejb container caculate it out?
    It is very myth, even wonderful!
    I love java and more like ejbs.

    No body reply.
    My question is silly or my english is very bad.
    Sorry I am chinese-speaking programmer.

  • QUESTION:  HOW TO WRITE QUERY  WITH MANY TO MANY RELATIONSHIPS

    Could someone help me out here?
    I was sitting here looking at some tables ie table_name and synonyms and wondering.
    If a table can belong to many synonyms and a synonym can belong to many tables how would one write a query where I would like to know which tables belong to each synonym or on the other hand which synonym belongs to what tables?
    Would I try to develop an outside join for this, a corrolated query or a query with a subquery or would there be another format that would work better?
    What would be the best method of attack on this?
    Thanks for your thoughts on this.
    al

    Actually, the relationship is not many to many. A table can have many synonyms, but a synonym within a namespace (i.e. a PUBLIC synonym, or a private synonym created by a user) can only point to one table. The xxx_synonmys tables already contain the information about the table_name and table_owner.
    John

  • How Can realize a one-to-many relationship via RIA service in lightswitch

    I have to query a large data and the normal query in lightswitch is so slow that I decided to use RIA service to improve the query.However I am not very good at RIA service. I follow
    this tutorial and set up a very simple RIA service. In my project, I have a one-to-many relationship but I don't know how to
    realize it . here is the Relationship:
    public class CombinedStadium
    private EcoStatus _ecoStatus;
    [Key]
    public int Id { get; set; }
    public string Name { get; set; }
    public string Category { get; set; }
    public string Owner { get; set; }
    public string Street { get; set; }
    public string OrgCode { get; set; }
    public string Place { get; set; }
    public int? FoundYear { get; set; }
    public double? LandArea { get; set; }
    public double? BuildingArea { get; set; }
    public double? SiteArea { get; set; }
    public double? Investment { get; set; }
    public double? Fiscal { get; set; }
    public double? CommonWeal { get; set; }
    public double? SelfRaised { get; set; }
    public double? SocialDonate { get; set; }
    public double? Other { get; set; }
    public double? Longitude { get; set; }
    public double? Latitude { get; set; }
    public string Note { get; set; }
    public byte[] Photo { get; set; }
    [Include]
    [Association("Stadium_EcoStatus", "Id", "EcoId", IsForeignKey = false)]
    public virtual EcoStatus EcoStatus
    get { return this._ecoStatus; }
    set
    this._ecoStatus = value;
    if (value == null)
    this.Id = value.Id;
    I am not sure whether it is right or not. But I want "one CombinedStadium Entity may contains
    more than one(many)EcoStatus Entities.
    I tried the code above and update my datasource, I got the error "the entity
    LightSwitchApplication.Implementation.EcoStatus's property doesn't supported by the type of StadiumEcoReference".
    How Can I realize a one-to-many relationship via RIA and use it in my lightswitch program?
    thx !!!

    namespace WCF_RIA_Project
    public class CombinedStadium
    [Key]
    public int SiteId { get; set; }
    public string Name { get; set; }
    public string Category { get; set; }
    public string Owner { get; set; }
    public string Street { get; set; }
    public string OrgCode { get; set; }
    public string Place { get; set; }
    public int? FoundYear { get; set; }
    public double? LandArea { get; set; }
    public double? BuildingArea { get; set; }
    public double? SiteArea { get; set; }
    public double? Investment { get; set; }
    public double? Fiscal { get; set; }
    public double? CommonWeal { get; set; }
    public double? SelfRaised { get; set; }
    public double? SocialDonate { get; set; }
    public double? Other { get; set; }
    public double? Longitude { get; set; }
    public double? Latitude { get; set; }
    public string Note { get; set; }
    public byte[] Photo { get; set; }
    [Include]
    [Association("Stadium_EcoStatus", "SiteId", "StadiumId")]
    public IQueryable<CombindeEcoStatus> EcoStatus { get; set; }
    public class CombindeEcoStatus
    [Key]
    public int EcoId { get; set; }
    public string StatdiumName { get; set; }
    public int? StadiumId { get; set; }
    public int? Year { get; set; }
    public int? EmployeeNum { get; set; }
    public string OperateMode { get; set; }
    public string OpenStatus { get; set; }
    public double? OpeningDays { get; set; }
    public string ClientCount { get; set; }
    public double? Income { get; set; }
    public double? Expend { get; set; }
    [Include]
    [Association("Stadium_EcoStatus", "StadiumId", "SiteId", IsForeignKey = true)]
    public CombinedStadium Stadium
    get;
    set;
    public class WCF_RIA_Service : DomainService
    private ApplicationData m_context;
    public ApplicationData Context
    get
    if (this.m_context == null)
    string connString =
    System.Web.Configuration.WebConfigurationManager
    .ConnectionStrings["_IntrinsicData"].ConnectionString;
    EntityConnectionStringBuilder builder = new EntityConnectionStringBuilder();
    builder.Metadata =
    "res://*/ApplicationData.csdl|res://*/ApplicationData.ssdl|res://*/ApplicationData.msl";
    builder.Provider =
    "System.Data.SqlClient";
    builder.ProviderConnectionString = connString;
    this.m_context = new ApplicationData(builder.ConnectionString);
    return this.m_context;
    [Query(IsDefault = true)]
    public IQueryable<CombinedStadium> GetAllStadiums()
    var stadiumsQuery = from stadium in this.Context.StadiumSet
    select new
    ID = stadium.Id,
    Name = stadium.Name,
    Category = stadium.Category.Name,
    OwnerParts = stadium.Owner2StadiumMediatorCollection.Select(x => x.Owner.Name),
    Street = stadium.Street.Name,
    OrgCode = stadium.StadiumBase.OrgCode,
    Place = stadium.StadiumBase.Place,
    FoundYear = stadium.StadiumBase.FoundYear,
    LandArea = stadium.StadiumBase.LandArea,
    BuildingArea = stadium.StadiumBase.BuildingArea,
    SiteArea = stadium.StadiumBase.SiteArea,
    Investment = stadium.StadiumBase.Investment,
    Fiscal = stadium.StadiumBase.Fiscal,
    CommonWeal = stadium.StadiumBase.CommonWeal,
    SelfRaised = stadium.StadiumBase.SelfRaised,
    SocialDonate = stadium.StadiumBase.SocialDonate,
    Other = stadium.StadiumBase.Other,
    Longitude = stadium.StadiumBase.Longitude,
    Latitude = stadium.StadiumBase.Latitude,
    Note = stadium.StadiumBase.Note,
    Photo = stadium.StadiumBase.Photo,
    var result = stadiumsQuery.AsEnumerable().Select(x => new CombinedStadium()
    SiteId = x.ID,
    Name = x.Name,
    Category = x.Category,
    Owner = string.Join("/", x.OwnerParts),
    Street = x.Street,
    OrgCode = x.OrgCode,
    Place = x.Place,
    FoundYear = x.FoundYear,
    LandArea = x.LandArea,
    BuildingArea = x.BuildingArea,
    SiteArea = x.SiteArea,
    Investment = x.Investment,
    Fiscal = x.Fiscal,
    CommonWeal = x.CommonWeal,
    SelfRaised = x.SelfRaised,
    Other = x.Other,
    Longitude = x.Longitude,
    Latitude = x.Latitude,
    Note = x.Note,
    Photo = x.Photo,
    }).AsQueryable();
    return result;
    [Query(IsDefault = true)]
    public IQueryable<CombindeEcoStatus> GetAllEcoStatuses()
    var stadiumEco = from eco in this.Context.EcoStatusSet
    select new CombindeEcoStatus()
    EcoId = eco.Id,
    StatdiumName = eco.StadiumEco.Name,
    StadiumId = eco.StadiumEco.Id,
    Year = eco.Year,
    EmployeeNum = eco.Employee,
    OperateMode = eco.OperateMode,
    OpenStatus = eco.OpenStatus,
    OpeningDays = eco.OpeningDays,
    ClientCount = eco.ClientCount,
    Income = eco.Income,
    Expend = eco.Expend
    return stadiumEco;
    protected override int Count<T>(IQueryable<T> queryable)
    return queryable.Count();
    now I have solved my problem, but when I query the data in Lihgtswitch HTMLClient . I can't get the related entities "CombindeEcoStatus" . How can I write the return value of
    GetAllStadiums function to get the related CombindeEcoStatus of each
    CombinedStadium?
    thanks!

  • How to model a Many-to-Many relationship in java?

    Folks,
    I'm having trouble understanding how to properly model a many to many relationship in OO/Java.
    The full scenario is in this thread... http://forum.java.sun.com/thread.jspa?threadID=5288115&start=0&tstart=0 it's a college/uni assignment to build a short-course management application. I'm doing the assignment for my own edification.
    The scenario (as I see it) is:
    * A college offers many Subject's in each of 4 semesters per year.
    * A SubjectOffering is identified by the combination of String subjectName, int year, and int semester [1..4]
    ... each SubjectOffering has a teacher, a cost, a price, etc, etc.
    ... it models "a running of a named subject"
    ... for example: "Geography 101 in the first semester of 2007 with Mrs Mappit"
    * A Student is identified by String name.
    * A Student can enroll in many SubjectOffering's [per semester].
    * A Subject has many pupils [per semester].
    In my current design:
    1. Each Student has a List<Subject> enrollments... of all the subjects they where/are/willbe enrolled in; and
    2. Each Subject has a List<Student> pupils... who are enrolled in that subject-offering.
    I think I've got an inherent catch 22 here...
    1. The student must exist in order to be enrolled in a course;
    2. but the course must first exist in for the student to enroll in it.
    So which comes first the chicken or the egg? And how?
    Coming from a database background, I'm thinking that I really need an enrollments table... that is a List<Enrollment> where an Enrollment object just correlates a Student to a SubjectOffering... modeling: "John Doe did Geography 101 in the first semester of 2007"... that way both the Student and the SubjectOffering can exist independantly of there enrollments/pupils.
    But I've got a nagging feeling that there's something basic that I'm just not getting, because I've spent too long in a static C/DB world.
    Please can anyone put me straight on the "proper OO way" to do this?
    Thanking you, Keith

    an Enrollment object just correlates a Student to a SubjectOffering...Sounds like a good plan to me.
    Example (Groovy):
    class Student {
        String name
        String toString() { name }
    class SubjectOffering {
        String name
        String toString() { name }
    class Enrollment {
        Student student
        SubjectOffering subject
        String toString() { "$student :: $subject" }
    registry = [
        new Enrollment(student:new Student(name:'yawmark'), subject:new SubjectOffering(name:'Biology 101'))
       ,new Enrollment(student:new Student(name:'corlettk'), subject:new SubjectOffering(name:'Chemistry 302'))
       ,new Enrollment(student:new Student(name:'corlettk'), subject:new SubjectOffering(name:'History 204'))
    keithSchedule = registry.findAll { it?.student?.name == 'corlettk' }
    keithSchedule.each { println it }Output:
    corlettk :: Chemistry 302
    corlettk :: History 204~

  • How to create a many to many relationship in forms 10g

    hello frnds,
    I want to create many to many relationship, can any one help me plz?
    Regards
    Divya Alok

    Hi ,
    In this situation create two separate blocks one is master and the other one is detail block.
    Then make detail block as database data block with the proper table name.Pass the value that your enter in the master block to the detail block as the search criteria to fetch the data from the table and to show the data related to the master value .If you have multiple master values then create data base data block sql query in such way that it must use all the master inputs as the search criteria.
    EX. Some time user wants to see the details of the employee after entering the emp id as the search criteria,that time you have to pass emp id as the search criteria to detail data base data block.Even you can pass emp id and emp name as the search criteria to the detail database data block.
    Thanks,
    Pavan.

  • How to create query for tables with many to many relationship

    in my sql i'm unable to update the table using select clause...is there any way to update a table which is in many to many relationship.
    Ex:1st table student(student_id int primary key auto_increment, student_name varchar(30));
    2nd table contact (contact_id int primary key auto_increment, c_email varchar(40));
    3rd table student_contact(student_id int references student, contact_id int references contact);
    i would like to auto insert the both two columns in the student_contact while the student and the contact table being updated automatically.

    This is a JSP/JSTL forum, not a SQL forum. If you're using MySQL, better use their own forums at dev.mysql.com.
    I'll give some hints anyway: learn about SQL JOIN. In general there is good SQL documentation available at the website of the RDBMS manfacturer. Go check it out. There is also a nice SQL tutorial at w3schools.com. Good luck.

  • How to approach this scenario (Many to Many). A bit confused

    Hi all,
    I have a scenario where I am confused and am looking for some guidance. Let me explain the scenario I have.
    I have an Item Table (Which will be used to create Item Dimension) :
    ItemID
    ItemName
    Item1
    ItemName1
    Item2
    ItemName2
    Item3
    ItemName3
    Item4
    ItemName4
    I have a Promo Table (Which will be used to create Promo Dimension) :
    PromoID
    PromoName
    1
    Promo1
    2
    Promo2
    3
    Promo3
    4
    Promo4
    I have a Promo Lines table (This is lines for promotion but here is the confusion):
    PromoID
    LineNum
    ItemID
    Activity
    1
    1
    Item1
    Activity2
    1
    2
    Item2
    Activity1
    1
    3
    Item3
    Activity3
    2
    1
    Item2
    Activity2
    3
    1
    Item3
    Activity1
    3
    2
    Item1
    Activity3
    4
    1
    Item2
    Activity2
    4
    2
    Item1
    Activity1
    I have a Transaction table "Sales Order Trans Table". This will be used to create "SalesOrderLine" Measure group (Fact) :
    SalesOrderNumber
    SalesAmount
    ItemId
    SO1
    100
    Item1
    SO1
    234
    Item2
    SO2
    345
    Item3
    SO2
    456
    Item1
    SO2
    567
    Item2
    SO3
    234
    Item2
    SO3
    345
    Item1
    SO3
    343
    Item3
    SO4
    234
    Item2
    SO4
    765
    Item1
    SO5
    567
    Item3
    SO5
    345
    Item2
    SO5
    234
    Item1
    Now in my cube I need these :
    Item Dimension :
    ItemID --> ItemID column of Item Table
    ItemName --> ItemName column of Item Table
    SalesOrderLines Measure Group
    Sales Amount --> Sum on SalesAmount column of Sales Order Trans table
    Sales Lines Count --> Count of rows of Sales Order Trans Table
    Promo Dimension:
    PromoID -->  PromoID of Promo Table
    PromoName --> PromoName of Promo table
    Activity --> Activity of Promo Lines Table
    Solution I have thought
    The Item dimension is straight forward and relation with Measure group is a regular on ItemId --> ItemId. So no issues here
    The Promo dimension  can be made easily from Promo table with promo Id as Key column. The relationship with fact is confusing me.
    For the Promo Dimension, Since it is many to many relationship between Promo and Item , I initially thought of using the PromoLines Table as a Fact less fact Measure group and using that as intermediary measure group in a Many-to-Many Dimensional usage between
    the Promo dimension and SalesOrderLines Measure group.
    The problem is the Activity attribute that is required on Promo dimension. if I use the PromotionLines in the dimension, I will get the activity, but what will I keep as key attribute(As One attribute is related to one or many lines).
    I am very confused with this. Any thoughts on how to resolve this or any suggestion will be very helpful.
    Thanks,
    Girija Shankar
    Please mark responses as answered if it helped you.. This helps others... - Girija Shankar Beuria

    You are on the right track. Create the SalesOrderLine measure group. Create the Item dimension. This will be your intermediate dimension. Create a measure group off PromotionLines with a hidden count measure. This is your intermediate measure group. Create
    a dimension off the Activity column (that's the key) and relate that dimension with a regular relationship to the PromotionLines measure group. This will be the first many-to-many dimension in SalesOrderLine. Create a Promo dimension with a regular relationship
    to the PromotionLines measure group and a many-to-many relationship to SalesOrderLine. This is the second many-to-many. Both m2m dimensions resolve through the same intermediate measure group.
    http://artisconsulting.com/Blogs/GregGalloway

  • EJB and many-to-many relationship

    I write two CMP Beans userBean and roleBean with many-to-many relationship
    userBean:
      cmp fields: id,name
      cmr fields: userRoles
    roleBean:
       cmp fields: id,rolename
       cmr fields: usersinroleIn database I have 3 tables:
    USER( ID NUMBER PK,NAME CHAR);
      ROLE( ID NUMBER PK,ROLENAME char);
      USER_ROLE( (USERID FK(USER.ID), ROLEID FK(ROLE.ID)) PK);in sun-cmp-mappings.xml I add cmp fields mapping,
    in userBean and roleBean I add secondary table USER_ROLE
    then I add CMR mappings to userBEan nd roleBean
    ufter deploying of EJB.jar
    in client i wrote:
    userBeanLocalHome lh=lookupUser();
    lh.create(new java.math.BigDecimal(5),'username');when i run client exception occurs in server log I see:
    TransactionRollbackException because Container try to insert into USER_ROLE
    values(5(userid),null(roleid)) but user have no roles
    in that situation how can I create user without any roles?
    thanx!

    FaraPooyan, I think about this but it is not good idea because it makes 1-n:1-m relationship.
    but I whant 0-n:0-m relationship
    I resolve this problem by removing secondary table from sun-cmp-entitymappings.xml
    So it works good, but now i dont understand: when i need secondary table mapping if they are not needed for many-to-many relationships

  • Siebel BI Publisher Report having many-to-many relationship

    I have query on creating BI publisher reports having many to many relations. The report requirements has fields from entities Customer, Claims and Payments. For explanation let say fields are customer name, claim ref, payment amount, pay id. claims and Payments entity has many to many relationship. Now my report shows as below. Actual Total Amount Paid to customer is 11,500. However my report total is shown as 13,000. How to resolve this ?
    Customer Name Claim Ref Payment Amt Pay Id
    Mr XYZ 1001 10,000 1-101
    Mr XYZ 1001 1500 1-102
    Mr XYZ 1002 1500 1-102
    I was thinking about a solution of having two columns side by side within a page. Column left will the show the data Customer to Claims and Column right will show the data Customer to Payments. But not sure how to achieve the rows wise alignment for the new customer records between two columns. If row wise alignment achieved then hope workaround might be accepted by client. Any help in this is greatly appreciated

    Thanks for the reply. The many to many relationship between Claims and Payments are achieved through intersection table in siebel. When Customer has multiple claims, single payment issued for both claims. Also single claim can multiple payments such (part compensation, interests, final compensation etc)

  • Many to Many Relationships in ejb.....Urgent Pls help

    hi all,
    Am working in EJB.Now we are coding for many to many relationship.
    Company and Salary register
    One Company can have many salary register and More than one company can have one salary register
    Companyand Salary register are the two tables having details of it.And the intermediate table having pk of company and salary register is Company_salary_register table,I want to add the value in this table having seperate interface.
    How to model it? I have given the add method of this company_salary_register table in company bean.I am getting the value of this one as collection.But it is asking me to add the values as the instance of LocalSalary(interfaceand entitybean).If i type cast it as Local Salary Class castexception occurs
    Please help me.Even Material of Modelling Many to Many relationship in EJB is enough.
    thanx in advance,

    THaaaaaanks alottt for the quick reply...
    I used the first way to insert the document and i was successful...
    but thing is that..
    when i do
    SQL>desc message_type
    message_type is NOT FINAL
    Name Null? Type
    SYS_XDBPD$ XDB.XDB$RAW_LIST_T
    to VARCHAR2(4000 CHAR)
    from VARCHAR2(4000 CHAR)
    subject VARCHAR2(4000 CHAR)
    body VARCHAR2(4000 CHAR)
    i can see the structure...
    and when i
    select count(*) from messages
    it says count is 1.
    so how to know where the data is ..like below in the data :
    'to' it has '[email protected]'
    and for 'from' it has '[email protected]'..and so on..
    <message>
    <to>[email protected]</to>
    <from>[email protected]</from>
    <subject>Question</subject>
    <body>Does this demo work?</body>
    </message>
    so what is the command to get that data...
    because when i do
    select * from message_type..it says
    select * from message_type
    ERROR at line 1:
    ORA-04044: procedure, function, package, or type is not allowed here
    Plss help me outt.......this will be my final step...
    Thankssssssssssssssss

Maybe you are looking for

  • Odd Variable Substitution Error in SQL Query

    I'm trying to finish up an application but one goofy error is throwing me for a loop. The error complains about my SQL syntax on the line containing "#filelist_sql#" near the bottom of the query, but when I output the SQL and run it in phpMyAdmin, it

  • Where to find correct russian messages for 8.1.7?

    In 8.1.7.0.1 tarball, there are incorrect russian messages (*.msb) for ALL products - .msb file header tells that it is cl8mswin1251 charset, but actually file uses cl8iso8859p5 charset. As a result, ALL russian messages are unreadable. I tried to pa

  • Question using jni

    Hi, This is the first time I use jni and I encountered some problem when trying to accessing instance fields. My source code is as follows: java side: class C { int j; private native void f(); static { System.loadLibrary("C"); } public static void ma

  • Seeburegr AS2 - encryption certificate reference

    Hi guys! I need to configure encryption certificate for AS2. The certificate is imported in the JAVA AS. View AS2, entry AS2C. Now, in the receiver agreement I have following items: - AS2 sender configuration / Signing Key - AS2 receiver Configuratio

  • When to use many dimensions or combine some.

    Hi, I'm after some advise on whether I should combine some dimensions. I thought I should combine them, but all the examples seem to prefer one key attribute. I have student information which has gender, ethnicity, year level (with 3 level heirarchy)