Finder Methods other than by Primary key

How should the Finder methods other than by Primary
key in Container MB be implemented? In Bean class?
I did some search in archives to no avail.
Thanks!!
Sriram

I think it might be different on different app servers, at least until EJB 2.0 is implemented everywhere. I found a bit of info on the matter:
http://www.jboss.org/documentation/HTML/ch06s07.html

Similar Messages

  • Can I have more than one primary key ???????

    Hi
    Assuming an application has designed as CMP with findByPrimaryKey( ) method having more than one parameter.
    Example :- findByPrimarykey(String val1, String val2)
    Is it possible to have two parameters fot the finder methods instead using PrimaryKey class ?
    If yes, what are the changes required for following deployment descriptor element. ?
    1. <prim-key-class></prim-key-class>
    2. <primkey-field></primkey-field>
    Regards
    Edward.I

    If a primary key has more than one primary key fields; is a composite primary key, a primary key class is required.
    The parameter of the findByPrimaryKey() method is the primary key class.
    findByPrimaryKey(PrimaryKeyClass pkClass)
    Deepak

  • More than One Primary Key

    Hi,
    How to create more than one primary key in TT
    CREATE TABLE LOOKUP (KEY NUMBER NOT NULL PRIMARY KEY, VALUE CHAR (64))
    In Oracle we can create Composite Primary key
    CREATE TABLE LOOKUP (KEY NUMBER NOT NULL , VALUE CHAR (64) , CONSTRAINT constraint_name PRIMARY KEY (KEY,VALUE) )
    Thanks!

    Hi 933663,
    What is a problem?
    Command> CREATE TABLE recreation.members
    (membername CHAR(20) NOT NULL,
      club CHAR(15) NOT NULL,
      memberphone SMALLINT,
      PRIMARY KEY (membername, club));
    Command> regards,
    Gennady

  • VLD-0201:Table has more than one primary key

    hi
    i'm working with OWB 9.2,I was imported the table from database,when i validating that it is giving message:
    VLD-0201:Table has more than one primary key
    vld-0209:Duplicate unique key i.e:cust_acc and SYS_C00435 detected.
    Can i use this table and generate the mapping with out any errors?
    Any help will be very generate.

    Hi Ashok,
    I'm quite curious how you managed to get a table with 2 PK's.
    I tried it myself:
    =======================================================
    SQL>create table x(c1 number constraint pk1 primary key,c2 number constraint pk2 primary key, c3 date);
    create table x(c1 number constraint pk1 primary key,c2 number constraint pk2 primary key, c3 date)
    ERROR at line 1:
    ORA-02260: table can have only one primary key
    SQL>ed
    Wrote file afiedt.buf
    1* create table x(c1 number constraint uk1 unique,c2 number constraint uk2 unique, c3 date)
    SQL>/
    Table created.
    =====================================================
    As you can see, trying to create a table with more than 1 PK is impossible. With Unique Key, that IS possible (see second example).
    I don't expect mappings to function properly with such an error message.
    Is it possible for you to drop the table in the database, correct the definition of the table in OWB and then deploy that corrected version to the database?
    If on the other hand the table on the database is correct (i.e. has only one PK) then the import into OWB obviously did not go well and I'd suggest you drop the imported definition and try to import it again.
    Cheers, Patrick

  • Can we have more than one primary key constraint to a Oracle Table?

    Hi,
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    Please somebody answer..
    Regards,
    Alaka

    811935 wrote:
    Can we have more than one primary keys to a single table in oracle? ( Not the composite key)
    In principle a table can have multiple keys if you need them. It is a very strong convention that just one of those keys is designated to be "primary" but that's just a convention and it doesn't stop you implementing other keys as well.
    Oracle provides two uniqueness constraints for creating keys: the PRIMARY KEY constraint and the UNIQUE constraint. The PRIMARY KEY constraint can only be used once per table whereas the UNIQUE constraint can be used multiple times. Other than that the PRIMARY KEY and UNIQUE constraints serve the same function (always assuming the column(s) they are applied to are NOT NULL).

  • Is there any other method other than se78 to upload a graphic into SAP R/3?

    Hi,
      Is there any other method other than se78 to upload a graphic into SAP R/3?
    Anita Jeyan

    hi ,
    just use  OAER or RSTXLDMC program
    it will definately help you
    regards
    rahul

  • Displaying information other than a foreign key in 'interactive reports'

    I would be very grateful if someone could help with the following query. I have 2 tables (*Table1* and Table2). Table1 has the following columns:-
    Tbl1PrimaryKey, Tbl1Description
    Table2 has the following columns:-
    Tbl2PrimaryKey, Tbl2Description, Tbl1ForeignKey
    Where Tbl1PrimaryKey is the 'primary key' in Table1, Tbl2PrimaryKey is the 'primary key' in Table2 and Tbl1ForeignKey is a 'foreign key' and uses the 'primary key' from Table1.
    I would like to create a page which displays the description of Table2 and Table1 on a web page, however, using an 'interactive report' in APEX, the resulting web page displays:-
    Tbl2PrimaryKey, Tbl2Description, Tbl1ForeignKey
    I would like to change the underlying code to display Tbl1Description instead of the primary key, but I can't get the SQL coding correct. The region source sql code at present is:-
    select "Tbl2PrimaryKey",
    "Tbl2Description",
    "Tbl1ForeignKey"
    from "#OWNER#"."Table2"
    Any help regarding the above query will be appreciatiated.

    Try one of the following in the Source:
    in-line query...(My favorite)
    select "Tbl2PrimaryKey",
    "Tbl2Description",
    (select Tbl1Description from Table1 where "Table2"."Tbl1ForeignKey" = Table1.Tbl1PrimaryKey) Tbl1Description
    from "#OWNER#"."Table2"
    -or-
    Classic Join (if Tbl1ForeignKey is NOT NULL)
    select "Tbl2PrimaryKey",
    "Tbl2Description",
    Tbl1Description
    from "#OWNER#"."Table2", Table1
    where "Table2"."Tbl1ForeignKey" = Table1.Tbl1PrimaryKey
    Hope that helps,
    Russ

  • Searching for OR Finding Contacts other than Alpha by First/Last Name

    Am I missing something? Or, is it not possible to FIND contacts by any means other than alpha on the first or last name field?
    It's such an elementary function of a "PDA" that I failed to inquire about the ability to LOOK-UP information with some simple SEARCH tool or utility.
    Even CALENDAR events...when did I schedule that appointment with Dr. Smith? FIND "Smith".
    I know "the girl" worked for some pharmacy? SEARCH for "pharmacy".
    Am I missing something? Where can I SEARCH for "HELP"?
    Thank you,
    Joe

    I too am having the same issue. I have about 900 "company" clients. I do business with the company yet can't perform any 'search' in the iphone contacts for that company. I absolutely am shocked by this. spent 45 minutes on the phone with apple and they said i was the first person to ever bring this up.
    I have to say that this is frustrating. Why can't I perform any search. Perhaps I'd like to visit a client that is within the same city i am visiting - i can't sort or search by anything except for the individual contact name.....crap. any thoughts (besides going in to outlook and putting the company name itself under the contact name - that would take forever)

  • SiteMinder authentication methods other than AD

    Hi everyone,
    Is there a way for eTrust's SiteMinder to authenticate in a way other than via ActiveDirectory?  Some of our SAP user names don't match our network login IDs, so using AD may prove to be difficult.
    Thanks!
    Mandy

    Since you disabled "clear", you will need to configure SquirrelMail to use Cram-MD5.
    To do so run:
    sudo /etc/squirrelmail/config/conf.pl
    and adjust your IMAP and SMTP settings

  • Drives other than my primary drive slow to open in finder/photoshop

    Hi, I have upgraded my Mac Pro to have all the bays filled up with drives. I set my primary drive (bay 1) for only applications. I set drive 2 to have documents/media and drive 3 as a scratch drive.
    The other drives outside of my applications drive get the spinning beach ball for about 20 seconds +. It seems like the drives are "sleeping" and take a moment to wake. Is this true or is something else going on? And if so, is there a way to set them to not sleep?
    Drives:
    bay 1 640 GB WD drive
    bay 2 1000 GB WD drive
    bay 3 1000 GB WD drive
    Thanks!

    I have 4 internal drives and there were times when I would have to wait 5-10 seconds for my drives to spin up, which was very annoying when using software that uses a scratch disk. So in my case, I wanted to permanently turn off my drive's sleep mode.
    There is a Power Management setting called Disk Sleep Timer that can be found under the Power item in System Profiler. The default setting for Leopard is 180 minutes, but your Mac's default setting may be different. You can access System Profiler under the Apple Menu > About This Mac > More Information.
    This setting can be changed by typing the following command in Terminal:
    sudo pmset disksleep ?
    Replace the ? with the number of minutes you want to set and press <Return>, then when prompted, type in your password. If you use a setting of 0 (zero), the hard disks will never sleep, unless you checked "Put the hard disk(s) to sleep when possible" in the Energy Saver Control Pane.
    To my knowledge, you cannot set the sleep mode for each individual drive, but this should help you.
    Keith

  • Looking for a method other than portable EHDs to backing up photos and videos from iPhoto.

    (MacBook Pro 15in Mid-2009, iPhoto '11)
    I currently have my iPhoto library (approx 250GB and growing) backed up to 2 1TB external hard drives. I also have my entire photo library on Shutterfly. My computer backs up to CrashPlan regularly, but I need to delete the original library from my computer to free up space and the library will no longer be in storage there. Therefore my library would be stored on 1 EHD and backed up on 1 more EHD that is exactly the same.
    I would like to have all of it backed up 3 times, so the photos are taken care of but I am in a quandary on what I should do about my videos. I would like to have an alternate method such as USB or SD card (worried that the EHDs will conk out or I will drop one), but I don't know if this is realistic or not (I realize that I would need multiple USBs or SD cards to back up this size of library). Flickr doesn't allow videos longer than 1:30 in length, and iPhoto keeps crashing on me when I try to upload videos to Flickr in any case.
    Is using a USB drive realistic? Is using an SD card even possible?
    Thanks for your advice!

    LarryHN, you said "YOu need one more trifitional hardvdrive". Do you mean I need one more external hard drive? Right now I have 2 1TB Other World Computing Mercury Elite Pros. I am open to buying one more external drive but I was thinking it should be a different kind/brand in case the ones I have turn into duds for some reason.
    Thank you for your point about Crash Plan. In any case it will be a moot point once I delete the library from my computer so I wasn't figuring that into my backup scenario.
    Please forgive me for my lack of education on this, but why won't USB thumb drive or SD card work? Can't I split the photos and videos up among several memory sticks?

  • Can members of a family group use their own credit card or payment method other than the Family Organizer's credit card?

    In Family Sharing, is the Family Organizer's credit card the only method of payment for all family members? Or can family members also pay with their own credit card?

    Hello Trisa295,
    Family sharing payments are all managed by the Organizer, and only the billing information on that account can be used to pay for an iTunes purchase. Take a look at this info from the following article:
    Family purchases and payments
    With Family Sharing, one adult in the family—the family organizer—agrees to pay for any iTunes, iBooks, and App Store purchases that other family members initiate while they're part of the family group. This also includes ongoing subscription purchases initiated by family members, such as iCloud storage, iTunes Match, and Newsstand subscriptions.
    If the members of the Family have credits or have iTunes Gift cards redeemed, that balance gets used first so an option you all have is to apply iTunes credit in some way to these member accounts:
    After you set up your family, any time a family member initiates a new purchase it will be billed directly to your account unless that family member has gift or store credit. First, their store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer's card. 
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • Can I install ios5 from a computer other than my primary computer?

    I have downloaded the Lion update in the office and would like to install ios5 on my iphone and ipad before going home, which is where my "primary" computer is, i.e., the one I use to sync.  Can I install ios5 from any computer or does it have to be the one I have always used for syncing?

    You can but if your office computer does not have your backups and iTunes Library from your home computer then the device contents will be wiped. I'd wait until you got home.

  • Entity Impl find by attribute value (not primary key)

    Hello to all!
    In database there are three tables: users (userId, userName), groups (groupId, groupName) and link (linkId, userId, groupId) - this table uses for "many to many" connection.
    In application i created entitys and associations for each table.
    Also override remove method for users and groups (now if delete user or group all rows associated with them will be deleted from link table).
    Now what i want to do - if new user were added, then add new row to link table with new user id and group id which groupName equals guest.
    Can it be done on entity level? If yes - how?
    Sorry for my language.

    I can think of a few ways to do this. One approach for your Users EO generate the relating EntityImpl (UsersImpl) with the create() method, and add the following code:
    protected void create(AttributeList attributeList) {
      super.create(attributeList);
      SequenceImpl userIdSeq = new SequenceImpl("USER_ID_SEQ",getDBTransaction());
      setUserId(userIdSeq, userIdSeq.getSequenceNumber());
      LinksImpl link = createLink(getUserId());
    public LinksImpl createLink(Number userId) {
       LinksDefImpl linksDefImpl = (LinksDefImpl)LinksImpl.getDefinitionObject();
       LinksImpl newLink = (LinksImpl)linksDefImpl.createInstance2(this.getDBTransaction(), null);
       newLink.setLinkId(1000);
       newLink.setUserId(userId);
       newLink.setGroupId(1); // assuming 1 is the "Guest" group
       return newLink;
    }This will create the Links record straight after the Users record is created. It assumes the Groups "Guest" record already exists.
    CM.

  • Can substitution methods other than the Global be used in a procedure ?

    Hi All,
    I am very much new to ODI .Apologies if the question seems silly.
    As part of an exercise I am working with ODI variables and substitution methods.
    My question is substitution methods like odiRef.getColList,odiRef.getFrom,getTargetColList() used in KM's for Code Generation while executing an interface,
    can they be used in a ODI procedure giving the necessary parameters as they require .
    Eg : Command on source :
    select     
         <%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "")%>
    from <%=odiRef.getObjectName( "TABLE_NAME" )%>
    Command on target :
    insert into <%=odiRef.getTable("L", "TABLE_NAME", "D")%>
         <%=odiRef.getColList("", "[CX_COL_NAME]", ",\n\t", "","")%>
    values
         <%=odiRef.getColList("", ":[CX_COL_NAME]", ",\n\t", "","")%>
    Ofcourse ,this is what an interface does but my requirement is to pass table name as variables and run this code iteratively to load targets,which again will be passed as variable.
    Will this run as a ODI procedure ?I tried and am getting exception errors.The getobjectName being global works fine with the proper table name generated in the code,but the getCollist does not work .Hence wanted to know if this standalone procedure is possible or will this code run only as part of KM over a interface?
    Thanks,

    Hi ,
    I had gone through this document,and from other sources also got a same answer that it cant be used.But is there a way it can be done?
    Actually we have many number of the small tables with just 10 records to be brought into the warehouse.The idea is to instead of doing it via an interface , why not try with a control table with an just the relevant entries and a procedure as above posted code.
    Some ideas would help.
    Thanks,

Maybe you are looking for