Duplicate fields in class

Hi,
I used schemagen and reversemappingtool to generate clasees for my
database. Some of the classes were created with duplicate fields. For
example, one of the tables looks like:
person_id (PK)
height
weight
birth_date
country_id (FK)
The class generated contains a country1 and country2 fields and getters
and setters for both. This is using Oracle 10g with Kodo 3.0.3. Is this
a known issue?
Thanks,
Doug

No. What version of Kodo are you using? Can you send us the schema.xml
file generated in the schemagen process? If you don't want to send it
publicly, please send it to [email protected]
-Patrick
Doug Emerald wrote:
Hi,
I used schemagen and reversemappingtool to generate clasees for my
database. Some of the classes were created with duplicate fields. For
example, one of the tables looks like:
person_id (PK)
height
weight
birth_date
country_id (FK)
The class generated contains a country1 and country2 fields and getters
and setters for both. This is using Oracle 10g with Kodo 3.0.3. Is this
a known issue?
Thanks,
Doug

Similar Messages

  • I am getting PLS-00410 error - duplicate fields in RECORD, TABLE or argumen

    Here is what I am doing. I have a package header and a package body. The package header compiles successfully and the above error is displayed while compiling the package body only.
    Package Header :
    create or replace package pkg_pms_print is
    type c_ref_printer_list is REF CURSOR;
    PROCEDURE sp_get_printerlist
    p_team_id IN NUMBER,
    printer_list_refcur OUT pkg_pms_print.c_ref_printer_list
    end pkg_pms_print;
    Package Body:
    create or replace package body pkg_pms_print is
    PROCEDURE sp_get_printerlist (
    p_team_id IN NUMBER,
    printer_list_refcur OUT pkg_pms_print.c_ref_printer_list
    IS
    printer_list_refcur pkg_pms_print.c_ref_printer_list;
    v_printer_id pms_test_team_printer.printer_id%TYPE;
    v_printer_name pms_test_team_printer.printer_name%TYPE;
    v_default_printer pms_test_team_printer.default_printer%TYPE;
    BEGIN
    OPEN printer_list_refcur FOR SELECT printer_id, printer_name,default_printer FROM pms_test_team_printer WHERE team_id = p_team_id;
    --DBMS_OUTPUT.PUT_LINE('EMPNO    ENAME');
    DBMS_OUTPUT.PUT_LINE('--- -------');
    LOOP
    FETCH printer_list_refcur INTO v_printer_id, v_printer_name,v_default_printer;
    EXIT WHEN printer_list_refcur%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(v_printer_id || '|'|| v_printer_name ||'|'|| v_default_printer);
    END LOOP;
    CLOSE printer_list_refcur;
    END sp_get_printerlist;
    END pkg_pms_print;
    Apart from this error one error also shown as " PL/SQL: Item Ignored"
    The compile points to the 3rd line in the package body for errors with the above mentioned error. There is no duplicate field name or argument name as the oracle error message says. It's a simple straight forward code. Can somebody help me if I am overlooking something?
    Regards,
    AgrawalV

    this problem is solved but i am not getting output when i have tested this procedure in test window.
    Program Continues upto 2nd DBMS call, means i am getting output upto 2nd DBMS call.
    create or replace package body pkg_pms_print is
    PROCEDURE sp_get_printerlist (
    p_team_id IN NUMBER,
    printer_list_refcur OUT pkg_pms_print.c_ref_printer_list
    IS
    -- printer_list_refcur pkg_pms_print.c_ref_printer_list;
    v_printer_id pms_test_team_printer.printer_id%TYPE;
    v_printer_name pms_test_team_printer.printer_name%TYPE;
    v_default_printer pms_test_team_printer.default_printer%TYPE;
    BEGIN
    OPEN printer_list_refcur FOR SELECT printer_id, printer_name,default_printer FROM pms_test_team_printer WHERE team_id = p_team_id;
    DBMS_OUTPUT.PUT_LINE('Printer ID Printer Name Default Printer');
    DBMS_OUTPUT.PUT_LINE('----- ------- ------- ');
    LOOP
    FETCH printer_list_refcur INTO v_printer_id, v_printer_name,v_default_printer;
    EXIT WHEN printer_list_refcur%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(v_printer_id || v_printer_name || v_default_printer);
    END LOOP;
    CLOSE printer_list_refcur;
    END sp_get_printerlist;
    END pkg_pms_print;

  • SAP GRC 10.1 AMF No data selected when adding duplicate fields from separate tables for configurable data sources

    Hi There,
    In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
    We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
    The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
    Below is an example:
    Basic data source with just one currency reference field EBAN-WAERS.
    When you run the Ad-Hoc Query you receive data.
    Basic data source with second currency reference field EKKO-WAERS.
    When you run the Ad-Hoc Query no data is found.
    Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
    Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
    Thanking you in advance.
    Regards
    Gary Khan

    Hi
    following are the  error messages from dump
    hrtText
       There is already a line with the same key.
    hat happened?
       Error in ABAP application program.
       The current ABAP program "SAPLCKMS" had to be terminated because one of the
       statements could not be executed.
       This is probably due to an error in the ABAP program.
    rror analysis
       You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
        which you declared
       with a UNIQUE KEY. However, there was already an entry with the
       same key.
       This may have been in an INSERT or MOVE statement, or within a
       SELECT ... INTO statement.
       In particular, you cannot insert more than one initial line into a
       table with a unique key using the INSERT INITIAL LINE... statement.
    rigger Location of Runtime Error
       Program                                 SAPLCKMS
       Include                                 LCKMSF01
       Row                                     226
       Module type                             (FORM)
       Module Name                             DYNAMIC_PERIOD_CLOSING
    Source code where dump ocured
    222
    223           APPEND ht_ckmlpp TO t_add_ckmlpp.
    224           APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
    225           INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
    >>>>           INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
    227         ENDWHILE.
    Also I guess there is problem with material ledger in R/3 side
    I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
    Thanks
    Navneet

  • How to trap duplicate fields?

    hi,i am using oracle forms developer 6.0.i want a standard stored procedure to trap duplicate fields.i need to track data types number,char and date.i was not using primary keys and foreign keys.please help me anyone.must be a standard one.thanks in advance.

    05ce8847-63f6-462d-9c5b-c21076276bb4 wrote:
    hi,i am using oracle forms developer 6.0.i want a standard stored procedure to trap duplicate fields...
    By this, I assume you mean you want to check for duplicate values in a block.  There are several ways to do this and there are several examples of this in the Forum and on the Internet.  Many of the examples on the Internet are demonstrated in Forms versions greater than Forms 6.0, but they should still work in Forms.  You just won't be able to open the sample/demo forms included with the examples.
    i need to track data types number,char and date.i was not using primary keys and foreign keys.
    Why would you not want to enforce uniqueness on your table?  As I mentioned above, there are methods in Forms to check for uniqueness (duplicates) in Forms, this should always compliment what you enforce through your table - not replace what you enforce on your table.
    Craig...

  • How to Ignore records having duplicate field value

    Hi,
    I have a fixed length flat file having multiple records.
    Ex:
    1000423421A8090
    1000802421A8091
    1000454421B8092
    1000412421C8093
    The first 2 record has A. So I have to take only one out of first two record and ignore the second one. I mean if there is any duplicate field at 11th position then I have to select only one record.
    Can you please let me know how to handle this.
    Thanks
    Mukesh

    Mukesh,
    Use the following UDF to achieve the same.
    <u><b><i>getchar</i></b></u>
    char ret = Values.charAt(10);
    return ""ret"";
    <u><b><i>Maptarget</i></b></u>
       //write your code here
    int len = Values.length;
    String char_at="";
    String pos="";
    for(int j=0;j<len;j++)
    if(j==0){
    result.addValue(Values[j]);
    else
    char_at= ""+ Values[j-1].charAt(10);
    pos=""+Values[j].charAt(10);
    if(!char_at.equals(pos))
    result.addValue(Values[j]);
    <b><i><u>Mapping Logic</u></i></b>
    1. Use sort by key function
    in the first parameter map - Source -UDF(getchar)
    in the second parameter map -Source
    2.Map the output of sortbykey to UDF(Maptarget)
    3.Finally Map the o/p of UDF to target.
    I checked it, its working as per your reqmt.
    If you have any doubts reply me I'll help you out.
    Note: In UDF(MapTarget) use Queue
    Best Regards,
    Raj.

  • PIC01 - Search of Field "FFF Class"

    Hi,
    I have some FFF Classes created by MM01.
    Whenever I go to t-code PIC01, I try to search (F4) for these classes, but only one appears.
    The others are created in the same way. It looks like an error of the search in the field "FFF  Class"... Any advice you can give me in order that if i search, all the classes are listed??
    Thanks and Regards,
    MC

    SAP Note 1668284

  • JAG error: duplicate definition of class

    Hi,
    When I run the JAG it adds duplicate class definitions to my JPR file. For example:
    Error(21,8): duplicate definition of class ky.gov.pwdwo.model.bc4j.handler.PwdWorkOrderHandlerImpl
    I can compile and run the application after I remove the duplicates from the JPR file.
    Any thoughts?
    Cheers,
    Patrick Cimolini

    Patrick,
    This can happen if the source path defined in the JHeadstart Application Structure File does not match the source path of the project properties. You probably already had existing handlers in the project's source path, and then JHeadstart generates another set in the source path indicated by the Application Structure File (which appear in the System Navigator under Miscellaneous Files).
    So if you change the Application Structure File's source path setting to be equal to the source path of your project, and remove the handlers from the other path, then it should be OK.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Preventing Duplicate fields in forms

    Hi,
    We have a requirement of preventing the user entering duplicate fields.
    For example
    The user enters vendor number XXXX in the first record
    and when he comes to second record or any subsequent record he should be prevented from entering XXXX.
    Thanks

    Hi there,
    If the user is entering a 'new' record for a vendor and if the vendor number has to be unique, you should consider making the field a primary key and have the system generate the number (through a Sequence) rather than user-entered. This would avoid the 'problem' that is in question.
    Regards,
    John

  • Sharepoint 2010 Content Deployemnt Job issue with duplicate fields in User information List

    Hi friends,
    I am facing below issue with the content deployment job.
    It was working earlier. But now since from couple of days all the content deployment jobs in production environment are failing with below error.
    Field name already exists. The name used for this field is already used by another field in the list. Select another name and try again.
    ObjectName="User Information List".
    When I check the fields in User information list in targeted site, I found couple of columns are dupicate like "ask me about",first name","Last name" etc.
    Do i Need to drop target site collection or recreate with fresh content deployment job.
    Please suggest.
    Please help .
    Regards
    Subrat

    Hi,
    According to your post, my understanding is that you got duplicate field error.
    Based on the error message, you can try to use the following code sample to remove duplicate records, and check whether it works:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointgeneralprevious/thread/41ee04bd-91fb-4bf9-932a-bac42c56c357
    Here is a similar issue, you can also use the ‘RemoveDuplicateColumn64’ provided:
    http://sharepointsurfer.wordpress.com/2012/04/27/how-to-fix-publishing-site-content-deployment-error-duplicate-first-name-column/
    What’s more, as you had said, you can recreate a site with a fresh deployment job.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to automatically rename duplicate field names?

    I'm trying to merge mutiple PDF files into one but some PDF files have duplicate field names. Is there a way that Acrobat can automatically rename those duplicate field names so that they remain unique during merging?

    Ok I found it :-) how to create a template thx ++
    I used that JS script with it (with my template name) :
    var expTplt = getTemplate("ajout_suivi_therap");
    expTplt.spawn(numPages,true,false);
    This works perfectly (new page under the last one, new names for fields) when I test it on my acrobat 8, but it doesn't work anymore on reader 9. Here is (in french !) the error message I have from the console :
    NotAllowedError: Les paramètres de protection interdisent l'accès à cette propriété ou à cette méthode.
    Template.spawn:2:Field Ajouter_page:Mouse Down
    If I try a translation of it :
    NotAllowedError : Security settings prohibit access to this property or method.
    Template.spawn :2:Field Ajouter_page:Mouse Down
    Do you have an idea ?
    Do I have to activate an option when saving the file ?
    Thx !!

  • "duplicate definition of class x"

    I moved a class from one directory to another. Now JDev 3.0 gives me the error "Duplicate definition of class x".
    I've tried rebuild. I've tried deleteing all the class files. I've tried exiting JDev and restart it.
    I still get the error. How do I get rid of this error?

    I can compile just the class x with no problem. When I do a make or rebuild of the project, then the problem happens.

  • If I use the function to align adjacent fields, or the function to match size, duplicate fields are created. How can I get this to stop?

    I have a form that consists of columns and rows of fillable fields. When I use the edit function to make the height of the fields the same, or make the widths of the different columns of fields the same, or align the fields vertically or horizontally, duplicate fields are created. If these fields have a box around them, all of the duplicate fields' boxes are shown. The field names have the same base name, but have a suffix that is sequentially numbered. If I delete the "lower" numbered suffix names (with the same base name), the resulting field does not appear on the form.
    What is going on with the alignment or size process. I do use the CTRL-Click function to select the group of fields I am trying to size or align. If using the selection of multiple fields should be done differently, how can it be done?

    No. That's not what's happening. The duplicate fields are ONLY created after I employ the alignment or sizing functions. Weird.
    I was hoping that this was the result of some kind of setting in Acrobat, or that the duplicate fields would disappear when saving the form, but that's not what happened.
    Thanks for your input, however.

  • Duplicate field in SOAP Header

    Hy Guys,
    I was migrating a set of applications from nw70 to nw74 and I got an error when a web dynpro model calls one PI web service.
    Analyzing the PI context we saw the message "Number of xml tag WSCorIDSOAPHeader is 2, expected number is 1" and the PI soap envelope that arrives at the channel really have two tags WSCorIDSOAPHeader.
    Someone else has seen it before??
    Thanks,

    Aries,
    Hello, My Apologies, I completely missed your response...
    Build Number is: 15.0.4535.1000  I tried to get the error I was seeing before show up in the ULS logs by trying to post on the Newsfeed, and I still get the error
    "We've hit a snag, Looks like the newsfeed was removed from the site, the site was deleted, or there's some temporary network problem. You can try again later or stop following the site from the sites page." 
    but nothing is showing up in the ULS logs.
    What it was saying when I did see it in ULS, was that there was an Invalid Field and the Corresponding ID was the same ID as the Duplicate HashTags Field.  I have also notided that in the Microfeed libraries where the Newsfeed IS working (Training, MySites)
    there is a HashTags field in the MicroFeed Library. In the sites where it is not working, no HashTags Column. I will keep trying to get it to throw a ULS entry and post the entry if I can get it to generate again.
    Thank you,
    Carl  
    Carl Frank Consultant - Solve It, Inc

  • Syntax error caused by duplicate methods in class.

    We've applied service patches to CRM 7 and afterwards I found that there were two versions of a method in a class. There was the original (shown in blue) which should point to the superclass, but does not and point to the ZL.... class. Then there's the second copy of the method, shown in black, which is the Redefined method. But, I have never seen both in existance at the same time when view via se24 or the component workbench.
    This is what I have tried:
    Redefined the method (shown in blue). But then I have two methods of the same name (SET_COUNTRY)  both shown in black. If I reverse the redefiniation it does successfully remove one of the redefintions, so I'm back to the state that started with, having the origianl superclass method and its redefiinition present. 
    This problem is in out QAS environment. I corrected this issue in DEV by deleting the Redefined method. However, the transport created fails when moved into QAS and gives a syntax error saying that duplicate methods exist, or is called twice. Which happens to be the problem that the transport should fix.
    Can anyone suggest anything to try and fix this?.
    As a last resort I opened our QAS envirnment for changes and within SE24 choose the option Utilities/Check.... But this did not resolved anything as all the sub-options said that everything was okay.
    Desperate now, the ledge of this window is not very wide but it's starting to look appealing, even though the building is only one storey high.
    [RESOLVED]
    My sanity is restored. No matter what I tried I could not get a transport through to correct this issue. In the end I had to open up QAS for changes and delete the redefined method from ZL... class by commenting out the call statement, and then answer yes to the question 'Do you want to delete the method?'. After this I re-activated all and the WebUI now works okay.
    The trouble is I'll need to repeat this process in production after the upgrade.
    When the problem was fixed in DEV a transport was created, but this just gave an error 8 when imported into QAS. The message given was exactly the problem that it was trying to fix.
    Jason
    Edited by: Jason Stratham on Sep 14, 2010 3:10 PM

    I think you should ask this on the ML or open a feture request on the bugtracker.

  • Help accessing field inside class

    Hello,
    I got a problem when trying to access my textfields in my field class, here is what I'm doing:
    Fields.class
    public class Fields extends JFrame {
       public Fields() {}
       public Component emploField() {
       JTextField f_Name;
       JPanel f_Panel, main_Panel;
       f_Panel.setLayout( new GridLayout(8, 2 );
       main_Panel.setLayout( new GridLayout( 2, 1 ) );
       f_Name = new JTextField(20);
       f_Panel.add(f_Name);
       main_Panel.add( f_Panel );
       return main_Panel;
    }my main class
    displayGUI.class
    public class DisplayGui extends JFrame {
      protected Fields fild;
      protected JPanel panel;
      public DisplayGui() {
       fild = new Fields();
       panel = new JPanel();
       panel.add( field.emploField() );
       add(panel);
       setSize(300, 300 );
       show();
    }It's working perfect to display my fields, but if i try
    fild.emploField().f_Name.setText("Type Your Name Here");
    //In my DisplayGui classI got a error
    Cannot Resolve Symbol
    Variable f_Name
    java.awt.Component
    fild.emploField().f_Name.setText("Type your name here");
    ^
    What I'm doing wrong?
    Thank You

    no, that wont work, and if it did the newly created component will not be displayed. you shoud instantiate an EmployeeField object with the traits you like, then you will be able to tweek it.
    class EmployeeField extends JPanel{
       public JTextArea textArea
       public EmployeeField(){
          // create and add whatever you want
          textArea = new JTextArea("area");
          this.add(textArea);
    }then in your main
    empField = new EmpField();
    and later
    empField.textArea.setTet("newText");

Maybe you are looking for