Implementing  RelationShips.....in ejb...help

hi all,
i am developing one application using ejbs in jboss server.
here i listed 2 tables....
i developed country entity and it is working fine.Now i want to develope the countrystate enity whose primarykey is a combined field....some doubt how to specify <prim-key field>
basically i don't know how to implement relations in ejbs...handling these foreignkeys..in ejb-jar.xml.....Any one have any idea,pls guide me....
i have found some tutorials...but none gave me the idea.
any help frm anyone is appreciated....,
thanx
CREATE TABLE country
country_code varchar(3) NOT NULL,
country_name varchar(50) NOT NULL,
currency_code varchar(3) NOT NULL,
created_by varchar(20) NOT NULL,
created_on timestamptz NOT NULL,
last_modified_on timestamptz,
last_modified_by varchar(20),
CONSTRAINT pk_country PRIMARY KEY (country_code),
CONSTRAINT fk1_country FOREIGN KEY (currency_code) REFERENCES curncy (currency_code) ON UPDATE NO ACTION ON DELETE NO ACTION
CREATE TABLE country_state
country_code varchar(3) NOT NULL,
state_id varchar(5) NOT NULL,
state_name varchar(50) NOT NULL,
created_by varchar(20) NOT NULL,
created_on timestamptz NOT NULL,
last_modified_on timestamptz,
last_modified_by varchar(20),
CONSTRAINT pk_country_state PRIMARY KEY (country_code, state_id),
CONSTRAINT fk1_country_state FOREIGN KEY (country_code) REFERENCES country (country_code) ON UPDATE NO ACTION ON DELETE NO ACTION
)

<prim-key field>
field should be a class which is the primarykeyclass for the bean pertaining to the EJB specification.
in case you need more clarification please do let me know
Regards
suresh.

Similar Messages

  • 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

  • How to implement this? please help

    In my java class, I have a string array called strarray which hold serveral elements, some of the elements have the same value , for example, the first element is "swimming", the forth element is also swimming. I use a for loop to get each element and give it to arrayHolder which is also a array with the same size as strarray. Now, what I want is: I defined a Vector called element I want this vector to filter out the element from arrayHolder, get the name of non-duplicated name from the arrayHolder, the result should be inside the element vector (swimming,walking,running,dancing), no duplicated name. My code is like follows:
    import java.util.*;
    import java.io.*;
    public class arrayTest{
    public static void main(String arg[]){
    String[] strarray={"swimming","running","walking","swimming","dancing","running"};
    String[] arrayHolder=new String[strarray.size];
    Vector element=new Vector();
    for(int i=0;i<strarray.length();i++){
    arrayHolder[  i  ]=strarray[  i  ];
    /* What should I do next to get the non-duplicated element from arrayHolder and
    * add them into the element vector????
    I did not finnish it, since I am a little bit confused, how to implement? Need some help. thanks.
    Message was edited by:
    Mellon

    Not sure if I see the use of strArray & arrayHolder (I've not looked at your code - you might use code tags next time (check the "code" button above the message textarea), but may I suggest using a Map of some sort instead of a Vector? It will prevent duplicates for you.
    Good Luck
    lee

  • Relationship with Chase help to get Chase CC?

    Good Morning my credit buddies! hahaha I recently set up an account with Chase (because I got the $300 offer woo hoo!). I have a student loan with them as well that has never been late. My banker suggested I try for the Chase Freedom in 3 months or whenever I'm ready. Does having a existing relationship with them help your odds of approval for a CC?

    TRC_WA wrote:
    I had a Chase account for over 3 years prior to switching to BECU in 2013. I was denied in 2013 for a CC fresh out of discharge with scores in the 630-640 range... citing my Ch 13.  As of March of this year I am still denied for Chase credit products... citing my now 6+ year old Ch 13 that is due to fall off in the coming months.  My scores are in the 670-680 range. Chase was not included in my Ch 13...  so for me having personal accounts with Chase didn't make any difference at all. They aren't BK friendly... even if they weren't included. BECU on the other hand has been very helpful with a car loan and a $10k CC... which is more than I can say for Chase.  I'll never again do personal banking with a bank. Never.   There have been folks on this board who have been approved for a Chase credit card with a BK, even burned them in their discharge. I think it all depends on the credit you have established since the BK and recon with an analyst.  

  • Problem with @OneToOne relationship in EJB 3.0

    Hi,
    I'm new to EJB 3.0. If i done any stupid thing please forgive me. Here is my doubt.
    I would like to use one-to-one relationship between two entities like USER and ADDRESS.
    I just did like this (the below code)to enable the relationship between these two entities.
    @Entity
    @Table(name="internalUser")
    public class InternalUser implements Serializable{
    .........//field entries of the User
    private Address userAddress;// Field for address entity.
    .......//setters and getters
    @OneToOne(cascade={CascadeType.ALL})
    @JoinColumn(name="id",table="user_address")
    public Address getUserAddress() {
    return userAddress;
    public void setUserAddress(Address userAddress) {
    this.userAddress = userAddress;
    } and Here is the Address EntityBean
    @Table(name="user_address")
    @Entity
    public class Address implements Serializable{
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    //setters and getters..
    }Entire Ejb application is deployed success fully. But when i try to add a User entry along with address, it is not able to save the address entry, but able to save the User entry correctly. And also it is not able to build a relationship with Address table.
    Here is my code which i write to save the User
    InternalUser user=new InternalUser();
    user.setName("Bharat");
    user.setSignnum("bhak");
    user.setDescription("Patel");
    Address address= new Address();
    address.setAreaCode("500032");
    address.setState("AP");
    address.setStreet("Prashanthi Nagar");
    user.setUserAddress(address);
    remote.saveUser(user); Here remote is SessionBeanInterface
    I'm using Postgres as a database.
    Please help me in this. What necessary steps need to follow in order to use @OneToOne relationship
    Edited by: chanti12345 on Apr 29, 2009 12:09 AM
    Edited by: chanti12345 on Apr 29, 2009 12:11 AM

    hi i solved this query.
    I made few changes in Both the entity classes. Here is the code for the Entites USER and ADDRESS
    @Entity
    @Table(name="internalUser")
    public class InternalUser implements Serializable{
    .......//field entries
    private Address userAddress;//address entry
    ......//setters and getters
    @OneToOne(cascade={CascadeType.ALL})
    public Address getUserAddress() {
         return userAddress;
    public void setUserAddress(Address userAddress) {
         this.userAddress = userAddress;
    @Table(name="user_address")
    @Entity
    public class Address implements Serializable{
    ....//fields and setters and getters
    }see the difference in the code . after making this change i'm able to save the User with relation ship with Address. No changes needed in client code.
    Thanks a lot to every one.
    Edited by: chanti12345 on Apr 29, 2009 2:22 AM

  • EJB Helper class not created

    Dear Sirs,
    I am following the example in the "Enterprise Java Beans manual" to use Jdeveloper to create the Hello World EJB described in appendix B.
    My EJB is deployed successfully but when I run the client I get "ClassNotFoundException: hello.HelloHomeHelper".
    I imagine that the computer is trying to load the HelloHomeHelper.narrow method to properly case the call to the create method of my EJB. But such class only gets created when you use the wizard "Generate CORBA Server classes". But I cannot do that since I am not extending org.omg.CORBA.Object object. Rather the EJB I am implementing implements the "SessionBean".
    So why I am having CORBA-related problems with EJB?
    thanks.

    Hi,
    I have the same problem with bc4j deployed on Oracle 8.1.7 as session EJB.
    I'm testing the deployed bc with a client code. I have the following problem on the lookup method:
    avax.naming.NamingException: Unknown reasons. Root exception is
    java.lang.ClassNotFoundException: vebs.jbo.common.ejb.VeAppModuleHomeHelper
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.initRemoteHome()
    void oracle.jbo.client.remote.ejb.aurora.AuroraEJBAmHomeImpl.<init>(oracle.jbo.JboContext, java.lang.String)
    oracle.jbo.common.JboHome oracle.jbo.client.remote.ejb.aurora.AuroraEJBInitialContext.createJboHome(java.lang.String)
    java.lang.Object oracle.jbo.common.JboInitialContext.lookup(java.lang.String)
    java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
    void bctest.main(java.lang.String[])
    but if I see in the Oracle db, the class is exported.
    Help me!!

  • Urgent EJB help

    Hello Java Gurus,
    i have some questions, please some help :)
    1. What is the difference between ejbCreate() found in the Bean class & the create() method found in the Home object. (Is there a difference in functionality ? )
    2. I hear some developers say the "EJB class", do they mean the Bean class ??
    3. SessionContext , can we use it to get & set attributes as the regular Session object that we create in a servlet or in a jsp ?? Or is there a difference
    Thanks in advance :)

    Hello Java Gurus,
    i have some questions, please some help :)
    1. What is the difference between ejbCreate() found
    in the Bean class & the create() method found in
    the Home object. (Is there a difference in
    functionality ? )The Home.create() is the client-visible API. ejbCreate is the implementation
    of that method on the bean class which is invoked by the ejb container.
    >
    2. I hear some developers say the "EJB class", do
    they mean the Bean class ?? Yes.
    >
    3. SessionContext , can we use it to get & set
    attributes as the regular Session object that we
    create in a servlet or in a jsp ?? Or is there a
    differenceNo, SessionContext is a special object only usable within a session bean.
    It's a special API between the bean class code and the ejb container.
    E.g. if a bean uses container-managed transactions it can set the
    transaction for rollback-only using SessionContext.
    --ken
    >
    Thanks in advance :)

  • One to many relationships in EJB

    I have two EBs related by a one to many relationship. The first of these tables is called Student and has studentId as its key. The second of the tables has a composite key made up of studentID, courseID and semesterID.
    However, when the tables are generated in NetBeans 5.5, I find that the Course table has studentID as both a primary key and a foreign key.
    I am at a loss to understand this as I am new to NetBeans and EJB.
    Can anyone advise?
    Thanks
    Martin O'Shea.
    The Student class:
    package CBSD_CW;
    import java.io.Serializable;
    import javax.persistence.*;
    import java.util.*;
    import javax.persistence.CascadeType;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.Id;
    @Entity
    public class Student_EB implements Serializable {
        // Table columns.
        @Id
        @Column(name = "STUDENT_ID", nullable = false)
        private Long studentId; // Student ID. Entity <Student><ID> from file: SampleData.xml.
        @Column(name = "FIRST_NAME", length = 50, nullable = true)
        private String firstName; // First Name. Entity <Student><FirstName> from file: SampleData.xml.
        @Column(name = "LAST_NAME", length = 50, nullable = true)
        private String lastName; // Last Name. Entity <Student><LastName> from file: SampleData.xml.
        @Column(name = "STUDENT_LEVEL", length = 2, nullable = true)
        private String studentLevel; // Student Level. Entity <Student><Level> from file: SampleData.xml.
        @Column(name = "PROGRAM_NAME", length = 50, nullable = true)
        private String programName; // Program Name. Entity <Student><ProgramName> from file: SampleData.xml.
        @Column(name = "PROGRAM_NUMBER", length = 3, nullable = true)
        private String programNumber; // Program Number. Entity <Student><ProgramNumber> from file: SampleData.xml.
        // 1:M relationship with Course_EB.
        @OneToMany(cascade=CascadeType.ALL, mappedBy="student")
        private List<Course_EB> courses;
        public List<Course_EB> getCourses() {
           return courses;
        public void setCourses(List<Course_EB> courses) {
           this.courses = courses;
        // Accessors and mutators.
        public Long getId() {
            return this.studentId;
        public void setId(Long studentId) {
            this.studentId = studentId;
        public String getFirstName() {
            return firstName;
        public void setFirstName(String firstName) {
            this.firstName = firstName;
        public String getLastName() {
            return lastName;
        public void setLastName(String lastName) {
            this.lastName = lastName;
        public String getStudentLevel() {
            return studentLevel;
        public void setStudentLevel(String studentLevel) {
            this.studentLevel = studentLevel;
        public String getProgramName() {
            return programName;
        public void setProgramName(String programName) {
            this.programName = programName;
        public String getProgramNumber() {
            return programNumber;
        public void setProgramNumber(String programNumber) {
            this.programNumber = programNumber;
        // Other methods.
        public boolean equals(Object obj) {
           if (obj == this) {
               return (true);
           if (!(obj instanceof Student_EB)) {
               return (false);
           if (obj == null) {
               return (false);
           Student_EB student = (Student_EB) obj;
           return (student.studentId == studentId);
    The Course class:
    package CBSD_CW;
    import javax.persistence.CascadeType;
    import javax.persistence.EmbeddedId;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.JoinTable;
    import javax.persistence.ManyToOne;
    @Entity
    public class Course_EB implements java.io.Serializable {
       Course_PK course;
       // M:1 relationship with Student_EB.
       private Student_EB student;
       @ManyToOne(cascade=CascadeType.ALL)
       @JoinTable(name = "Student_EB", joinColumns= @JoinColumn(name = "STUDENT_ID", referencedColumnName = "studentId"))
       public Student_EB getStudent() {
          return (student);
       public void setStudent(Student_EB student) {
          this.student = student;
       // Constructor.
       public Course_EB() {
       // Accessors and mutators.
       @EmbeddedId
       public Course_PK  getCourse_PK () {
          return (course);
       public void setCourse_PK(Course_PK course) {
          this.course = course;
    The Course_PK class:
    package CBSD_CW;
    import javax.persistence.Column;
    import javax.persistence.Embeddable;
    @Embeddable
    public class Course_PK implements java.io.Serializable {
       // Table columns.
       @Column(name = "STUDENT_ID", length = 4, nullable = false)
       private long studentId; // Student ID. Entity <Student><ID> from file: SampleData.xml.
       @Column(name = "COURSE_ID", length = 4, nullable = false) 
       private String courseId; // Course ID. Entity <Student><Course><Number> from file: SampleData.xml.
       @Column(name = "SEMESTER_CODE", length = 3, nullable = false)
       private String semesterCode; // Semester Code. Entity <Student><Course><SemesterCode> from file: SampleData.xml.
       @Column(name = "GRADE", nullable = true)
       private char grade; // Grade. Entity <Student><Course><Grade> from file: SampleData.xml.
       // Constructors.
       public Course_PK() {
       public Course_PK(long studentId, long courseid, String semesterCode) {
          this.studentId = studentId;
          this.courseId = courseId;
          this.semesterCode = semesterCode;
       // Accessors and mutators.
       public long getStudentId() {
          return (studentId);
       public void setStudentId(long studentId) {
          this.studentId = studentId;
       public String getCourseId() {
           return (courseId);
       public void setId(String courseId) {
           this.courseId = courseId;
       public String getSemesterCode() {
           return (semesterCode);
       public void setSemesterCode(String semesterCode) {
           this.semesterCode = semesterCode;
       public char getGrade() {
           return (grade);
       public void setGrade(char grade) {
           this.grade = grade;
       // Other methods.
       public boolean equals(Object obj) {
           if (obj == this) {
               return (true);
           if (!(obj instanceof Course_PK)) {
               return (false);
           if (obj == null) {
               return (false);
           Course_PK course = (Course_PK) obj;
           return ((course.studentId == studentId) &&
                   (course.courseId.equals(courseId)) &&
                   (course.semesterCode.equals(semesterCode)) &&
                   (course.grade == grade));
    }

    Because you have field
    @Column(name = "STUDENT_ID", length = 4, nullable = false)
       private long studentId; // Student ID. Entity <Student><ID> from file: SampleData.xml.In you Course_PK class. As a primary keys.
    An again you are joining it in field
        @ManyToOne(cascade=CascadeType.ALL)
       @JoinTable(name = "Student_EB", joinColumns= @JoinColumn(name = "STUDENT_ID", referencedColumnName = "studentId"))So it is appearing both inPrimary Key and in Foreign Key.

  • Need guidence for  implementing  relationship in a DataBase

    Hi All,
    I am required to implement a component for my current project . This component basically defines relationships between tables in a database.
    This component is similar to realtionship feature as provided in MSACESS database.
    I need to move tables ans maintain the links defining inner and outer joins.
    I have thought of using JInternalFrames to display table data, so that i can move the tables and I am using Java2D API to darw line between two JInternalFrames.
    Kindly let me know if My approach will work or if any body has implemented same kind of componet???
    DO we have any tools availabl which i can integrate with my project to define relationships??
    Any pointers will help...

    Use [sdn search tool|http://www.sdn.sap.com/irj/scn/advancedsearch?query=materialmasterpicture#rltop], you could find in wiki [Attaching Design Diagram to Material Master|http://wiki.sdn.sap.com/wiki/display/SCM/AttachingDesignDiagramtoMaterialMaster] or [ADDING PICTURES MATERIAL MASTER DATA|http://wiki.sdn.sap.com/wiki/display/ABAP/ADDINGPICTURESMATERIALMASTER+DATA]
    You could also call  transaction CV01N,
    - create a document selecting a correct document type, then
    - Originals tab, select the icon - Open Originals, select the path of the Picture and attach the picture.
    - Object Links Tab, select the option - Material Master and attach the Material Number to this Document.
    Now the picture is attached to the particular Material Number and when you access the MM02/MM03 transaction, on to the additional data screen, tab Document data. System will list the documents attached to this Material. Select the document with the Description as you given earlier and click on Icon Display Original, system will display the Picture.
    You could also add pictures via the GOS Generic object servicess icon on transaction MM01/MM02.
    Regards,
    Raymond

  • Need JSP with CMR EJB  Help

    hi
    regarding my question
    i am not clear how to use two bean one has foreign key and another has primary key in the client side
    for that i make two beans and make cmr relationship between them fine
    but when i call another bean in the client side i have to use findByPrimaryKey method to map the beans
    fine
    Cnmas cnn = cnhome.findByPrimaryKey(dpwb_no);
    now my problem is i have multiple records corresponding to the dpwb_no which is my primary key
    so for that should i use the iterator method
    and if i will not use then i am using local as well as remote home interfaces so in that case my code will be:-
    in the local interface:-
    public DodAuthorisationLocal findByPrimaryKey(String authorisationNo) throws FinderException;
    in the remote interface:-
    public DodAuthorisation findByPrimaryKey(String authorisationNo) throws RemoteException, FinderException;
    now my problem is that client will interact with local interface and we are makeing remote's home interface.
    because i have to use that values in the create method as parameter
    the create method has local interface's value as parameter and we are calling remote interface so tell me how to solve it
    CnmasHome cnhome = (CnmasHome)PortableRemoteObject.narrow(ctx.lookup("Cnmas"), CnmasHome.class);
    Cnmas cnn = cnhome.findByPrimaryKey(dpwb_no);
    in this code we use the remote interface
    this is my create method which i try to call
    public DodAuthorisation create(CnmasLocal cnn ) with more parameter
    so how to interact the local interface in the create method with the remotehome refrence with the findByPrimaryKey method.
    Now i think u can able to understand my problem
    thanks alot

    Hi Veronika,
    The <jsp:usebean> is used for only javabeans not EJB (Enterprise javabean). You said that you have deployed SpellCheck.jar to the JRun server. So that must be an EJB. Where are you accessing this EJB from in your JSP? ARe you doing it inside the projsp.SpellCheck javabean? If yes, can you post some code from the javabean.
    Cheers
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <jsp:useBean id="help" scope="request" class="projsp.SpellCheck"/>
    <jsp:setProperty name="help" property="*"/>
    <html>
    <head>
    <title>Untitled</title>
    </head>
    <body>
    You Entered the input,
    <b>
    <%= request.getParameter("word") %>
    </b>
    <br>
    The processed output is:<br>
    <%= integer.parseInt(request.getparameter("mode"))==1 ?help.reverse():""+help.check() %>
    </body>
    </html>

  • Obtaining principal in EJB helper classes

    I have a pretty typical EJB setup where the actual EJBs delegate a lot of work
    off to helper classes which are simple java classes. Some of these helpers need
    access to the principal currently executing on this container thread. Currently,
    I am passing the principal as a parameter in every method signature on the helpers
    which need it. But as you can probably guess that approach is quickly becoming
    unweildy.
    Ideally, what I would like to do is to have access to the principal associated
    with the currently executing thread. I can mimic this by setting thread-local
    variables in the EJB prior to calling helpers. But I was wondering (ok, hoping)
    that there was already a way to access this information (either through weblogic
    classes or MBeans). At this point, I dont even care if it is not portable.
    P.S., I use WL6.1
    Thank you in advance,
    Steve

    >
    The helper methods do database querries etc and return results that the EJB sends onwards to clients. If these methods
    are NOT synchronized (and the ejbs share the static class) won't it cause concurrency errors? I think most of our methods are not
    synchronized (and it doesn't seem to cause any concurrency errors so far... though the system have not beeen stressed test that much,
    and concurrency bugs tends to pop up later and randomly :P).
    >
    No, if you dont have any static data variables in the Java classes, static method as such will not cause concurrency errors, and the methods should not be synchronized.
    If you have any synchronized methods and they take a while to execute, that could become a bottleneck in itself, because different threads waiting for each other,
    so make sure you dont have any synchronized methods where it is not explicitly needed.
    Think of a static method (without static data in the class being manipulated) as a plain function in another programming-language.
    >
    We have some scaleability problems with the EJBs... It seems as if they do not run concurrently. If we do a stress test with several threads calling the EJBs their response time increases by a too large factor to feel comfortable...
    >
    Apparently, you do have a some scaling/concurrency problem, which could have many causes -- transaction locking and clashes in the database, poorly configured database, network congestion, problems in the EJB architecture, etc -- can be many reasons...
    The general idea to debug, is first to find out exactly what calls in your code that take longest time to execute (profiling, logging, System.out.println's are useful) when you put parallel load on your system -- rather than just seeing "the whole application seems slow" -- from there you can move on, "divide&conquer" the problem, etc...

  • Processing soap header in ejb, help me !!!

    Could anyone tell me how can i get the soap header information in ejb to process? I have implement the headercallback in the implementation bean and add the processheader method, but when i invoke the ejb method through proxy, the exception like "you must implement headercallback.." arise. Did i leave any step undone? Thank you very much!

    netbeans.org has a lot of resources on developing EJB. Just search at netbeans.org upper-right corner:
    http://www.netbeans.org/
    One of them is a 30-min tutorial:
    http://www.netbeans.org/kb/55/ejb30.html
    You can also read JavaEE Tutorial, especially the chapter Get Started with EJB:
    http://java.sun.com/javaee/5/docs/tutorial/doc/
    -cheng

  • Error creating 2 or  1:M relationships in DBAdapter help mee

    hi
    my req is if i enter partyid it shd show partyid and partyname/accountid/incidentid/repairlineid
    i have try to get it with DBAdapter
    error while creating 2 or more 1:M relationships here
    face error when i give input partyid or partyname
    SELECT DISTINCT t1.PARTY_ID, t1.PARTY_NAME, t0.ACCOUNT_NUMBER, t0.CUST_ACCOUNT_ID, t2.INCIDENT_NUMBER, t2.INCIDENT_ID, t3.REPAIR_NUMBER, t3.REPAIR_LINE_ID FROM CSD_REPAIRS t3, CSD_INCIDENTS_V t2, HZ_PARTIES t1, HZ_CUST_ACCOUNTS t0 WHERE (((t1.PARTY_ID = #PartyId) OR (t1.PARTY_NAME LIKE #PartyName)) AND (((t0.CUST_ACCOUNT_ID (+) = t1.PARTY_ID) AND (t2.INCIDENT_ID (+) = t0.CUST_ACCOUNT_ID)) AND (t3.REPAIR_LINE_ID (+) = t2.INCIDENT_ID)))
    <Faulthttp://schemas.oracle.com/bpel/extensionhttp://schemas.xmlsoap.org/soap/envelope/>
    <faultcode>null:bindingFault</faultcode>
    <faultstring>business exception</faultstring>
    <faultactor>cx-fault-actor</faultactor>
    <detail>
    <code>null</code>
    <summary>file:/F:/product/10.1.3.1/OracleAS_2/bpel/domains/default/tmp/.bpel_getCustomerList1_1.0_49ed4e445b1cd587d96dc2aacda67c9e.tmp/getCustomerList1_service.wsdl [ getCustomerList1_service_ptt::getCustomerList1_serviceSelect_PartyName_PartyId(getCustomerList1_serviceSelect_PartyName_PartyId_inparameters,HzPartiesCollection) ] - WSIF JCA Execute of operation 'getCustomerList1_serviceSelect_PartyName_PartyId' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCustomerList1_serviceSelect], Descriptor name: [getCustomerList1service.HzParties]. ; nested exception is: ORABPEL-11614 DBReadInteractionSpec Execute Failed Exception. Query name: [getCustomerList1_serviceSelect], Descriptor name: [getCustomerList1service.HzParties]. See root exception for the specific exception. Caused by Exception [TOPLINK-6094] (Oracle TopLink - 10g Release 3 (10.1.3.4.0) (Build 080602)): oracle.toplink.exceptions.QueryException Exception Description: The parameter name [PARTY_ID] in the query's selection criteria does not match any parameter name defined in the query. Query: ReadAllQuery(bpel___localhost_default_getCustomerList1_1_0__MD5_3fe4a1fc5957ea34e485796a4dad542e_.getCustomerList1service.CsdIncidentsV). </summary>
    <detail>Exception Description: The parameter name [PARTY_ID] in the query's selection criteria does not match any parameter name defined in the query. Query: ReadAllQuery(bpel___localhost_default_getCustomerList1_1_0__MD5_3fe4a1fc5957ea34e485796a4dad542e_.getCustomerList1service.CsdIncidentsV)</detail>
    </detail>

    hi James
    yah i have populated the partyId and also i have tested the query its working but it shows all null values for incidentid,repairlineId actually their are diffrent incidentid and repairlineid for the given custaccountids .the req. is that a partyid can have one or more custaccounts for that i have kept 1:M Relationships from hz_parties(partyid) to hz_custaccounts(partyid) and about the the like clause will work without '%' and i have using it and it working fine
    can u help me out
    naveen

  • Implementation of F4 value help for a search field which is an EEWB field

    Hi...
                I am trying to create a F4 value help for a search field which is an eewb field.The f4 value help jus need to be a pop up containing the values of the field existing in the system.Since this is a search field the GET_V method cannot be used. I tried implementing it by creating a search help and then using it in the GET_DQUERY_VALUEHELPS method.But the problem when u use the search help is that all the values including the null values and duplicate entries will be populated when f4 is clicked.Is there any way to filter the values that get populated when f4 is clicked?If any other method can be used to implement the functionality please let me know..Thanks in advance....

    Hi,
    the GET_V methods worked for me most of the time. Even in advanced searchs. Only time they do not is if there is a different aproach considered in the GET_DQUERY_VALUEHELPS.
    As the GET_V_ you created obviously was called I suppose you found the correct place to Populate it to be used in the search.
    I do not know what the problem with the NULL values and duplicate entries is you talked about, but it sounds to me the creation of your valuehelp class is flawed. Not the integration into the UI.
    Maybe have a look at SAPs' standard implementations of Search Components. You should get a feeling for how search helps work. See. BT111S_OPPT, BP_HEAD_SEARCH
    cheers Carsten

  • Use a parameter value in F4 help / Implement a wildcard F4 help

    Hi,
    I would like to implement a F4 help for a parameter. The user should be able to enter a text to the parameter field hit F4 and get and help screen related to the text he just entered. (pretty much like the F4 help for SE16 or SE83)
    My problem is, that the entered text is not available in the report.
    REPORT SELECTION_SCREEN_F4_DEMO.
    PARAMETERS: filename TYPE localfile LOWER CASE.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR filename.
      CALL SCREEN 100 STARTING AT 10 5
                      ENDING   AT 50 10.
    MODULE VALUE_LIST OUTPUT.
      SUPPRESS DIALOG.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
      SET PF-STATUS SPACE.
      NEW-PAGE NO-TITLE.
      WRITE: 'Pattern:', filename COLOR COL_HEADING.
    * selection of filenames ...
      CLEAR filename.
    ENDMODULE.
    AT LINE-SELECTION.
      CHECK NOT filename IS INITIAL.
      LEAVE TO SCREEN 0.
    If a value was entered at the selection screen and a break point is set in MODULE VALUE_LIST OUTPUT, value filename is always empty.
    How can the current value of parameter filename be accessed in the program?
    Thanks in advance
    Dominik

    You would have to use a form, with hidden parameters and a method="post". Your Next link could be a submit button, or be a link with an onclick event that submitted the form:
    <c:url var="thisURL" value="homer.jsp"/>
    <form name="iqform" action="<c:out value="${thisURL}"/>">
      <input type="hidden" name="iq" value="<c:out value="${homer.iq}"/>"/>
      <input type="hidden" name="checkAgainst" value="marge simpson"/>
      <input type="submit" value="Next"/>
      <!-- or -->
      <script type="text/javascript">
        function submitIqForm() {
          document.iqform.submit();
      </script>
      <a href="javascript: submitIqForm()">Next</a>
    </form>

Maybe you are looking for

  • Should I buy a MacBook Air?

    I've got a 2009 17" MBP running Snow Leopard and an iPad 2. I am wanting to upgrade to Lion, but have several apps that I use on a fairly regular basis [once per week or so] are not universal or intel. I can upgrade to Lion on the MBP and boot from a

  • Quicktime Codec for use on internet

    Projects that I have exported as a quicktime files seem to be giving people trouble when downloading. They are exported in h.264. If i used h.263 or h.261 for export are those codes usable by earlier versions of QT, and would people be able to view t

  • A possible fix for the email "large attachment cra...

    08, v1507, FP2, UK product code (hacked from original amazon.co.uk Malaysian product code). I've just started Nokia Suite to see if anything new comes up. No sign of 1508 but one "really interesting" fix for the email app, specifically mentioning the

  • Left fan in my MBP makes some weired noise when shutting down

    Hi, my model is 2.4 Late 2008, few days ago the left side of my mbp dropped on the table because I forgot to take out the headphone when I stood up.. Now every times I turn off the computer, the left fan makes noises that sound like the fan is touchi

  • No Sound in Flash Player for PC

    I have a PC and I have a problem with Flash Player 8. When I visit web sites that use Flash Player there isn't any sound. I've tried running the K-Lite Codec Pack, but that doesn't work. Could someone help me please?