Best way for manage pk's

I am using sequences for manage mi primary keys'. My application are using create method of the entity for get the next value for my PK, using technique explained in:
http://hasamali.blogspot.com/2011/04/adf-bc-various-way-of-setting-sequence.html
http://mjabr.wordpress.com/2011/03/11/make-sequence-number-as-default-value/
http://webapplicationdeveloper.blogspot.com/2012/03/adf-11g-get-sequence-in-groovy.html
Which do you think is the best way to manage mi primary key's
thanks in advance
greetings

That made me laugh out loud :) Who says the use of triggers is 'not best practice'? Must be a hardcore java programmer I guess.
I once saw an application have a separate table that had a row for each other table and the latest value of the primary key for this table. Every insert in a table was preceded with a select from that table, and an update to increment the latest value. That way unique values for the primary key were ensured. How about that?
p.s. PLEASE DON'T DO THAT

Similar Messages

  • What's the best way to manage Apple IDs for multiple devices?

    Hi,
    We have
    a shared Macbook air
    a shared iPad
    my iPhone
    his iPhone
    We want to put one ID on the Macbook and iPad that we can use to have the same iMessage on both and that we can put a card on and use in the iTunes store etc.
    We also want to have our own iMessages on our iPhones, plus be able to use the account with the cards on them to purchase and share across devices...
    What's the best way to manage them all?

    Welcome to the Apple Community.
    iTunes is straight forward, just use the same ID on all of them.
    What exactly do you want to see in messages on the Mac and iPad, messages combined from each of your phones or a different account just for both of you.
    You should think about what you want in calendars, contacts etc, on your shared devices.

  • My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

    My Mum( a pensioner) is wanting to purchase both an iPhone and iPad.  What is the best way for her to manage her data /calls/txt etc. obviously the cost needs to be as low as possible.  Currently does not have WiFi but uses dongle

  • I have a macbook pro I use for work and iMac at home. What is best way to manage my files? Use iCloud? Dock my laptop when I come home? Appreciate any suggesitons

    I have a macbook pro I use for work and iMac at home. What is best way to manage my files? Use iCloud? Dock my laptop when I come home? Appreciate any suggesitons

    That depends on what kind of "files" you're talking about and what your employer's policy is on using cloud storage.
    I found dropbox and/or OneDrive work very well for keeping documents in sync between multiple machines.

  • Best way for Email Notifications in EWS Managed API 2.0 [ Exchange Server 2013]

    Hi ,
    I want to know best way for Email Notifications in Exchange server. My
    organisation has 
    10 users, i want to get notification if any user mailbox got any new mail.
    i need to create API,
    that was consumed by another Team in their Application.
    I am using Exchange server 2013.
    Please share Your Ideas.
    Thank you

    Take a look at EWS Notifications
    http://msdn.microsoft.com/en-us/library/office/dn458791(v=exchg.150).aspx .
    Cheers
    Glen

  • Best way to manage multiple iTunes accounts (from different countries)

    Ok, wasn't sure if this was the best community to ask this question, but here goes.
    My wife and I have two iTunes accounts, one originally from the United States, the other originally from Australia. Over the years content has been purchased using both accounts.
    We currently reside in Australia and primarily view our content on Apple TV. So far we’ve had no problems logging into either account and accessing all our content.
    Now, I have a fear (perhaps an irrational one) that if we choose to permanently reside in one country (Australia, the US, somewhere else) that at some point Apple may cancel/restrict one of these accounts. Since there is no way for me to merge all our purchased digital content into the one digital library, we’re now wondering the best way to manage this?
    I see there is a new "family sharing" feature soon to be launched, so that may be half the solution (assuming it will work with family members in different continents). If so, the other half of the question is, will we be able to still purchase content on both accounts? While in Australia since April we have rented movies on both accounts, but have only purchased movies etc on the Australian account (we can still do this on the US account, but we haven't risked it in case it gets cancelled because Apple decides we're no longer in the US - in other words, we don't want to spend $$$ on movies we may not be able to access in future).
    What do others think? What is the best way for us to manage our scenario? Or am I worried about nothing and we can continue purchasing content on either account without fear of “losing” it later?
    Any advice would be greatly appreciated! I did try and ring Apple, but the guy refused to give me advice until I provided my details and I did't want to do that at this stage.
    Thanks everyone for your help!
    MM

    You may lose the ability to purchase content from the USA, but any content you've already bought will remain accessible. Back everything up.
    (112502)

  • How is the best way to manage the stats table?

    Hello!
    I have the Integration 2.1 working with an Oracle 8.1.7 db. I noticed that the table
    STATS is growing pretty fast.
    How is the best way to manage this table?... I haven't found something related with
    this issue in the documentation, but at least I want to know how to safely delete
    records from this table.
    For example, if I know the minimal time I have to keep in the table, is quite simple
    to create a shell script and/or Oracle pl/sql job to trim the table.
    I hope somebody can help me!!!!
    Thank you!
    Ulises Sandoval

    Write an app people want to buy and rate highly.

  • What is the best way to manage photos - Dropbox (with sync), Facebook (with sync), iPhoto, etc.?

    With so many cloud based and wireless syncing services, I'm lost as to the simplest way to keep photos sync'd as well as backed up. My dropbox is currently syncing all photos I take with my iphone, but in an overall folder called CAMERA UPLOADS, so they are uncategorized. I upload pics to facebook, which facebook also has a sync photos feature, but I don't necessarily want all photos uploaded to facebook. What has worked best for everyone so that there aren't a ton of dupicate photos everywhere, and multiple syncs of the same photos?
    Also, what is the best way to manage my iPhone photos generally? I'm never sure if I delete a photo from my phone, does it delete it on my computer via iCloud? Sometimes I just take a picture to send to a friend that I don't need to keep, while others are ones I want to sync to my computer. Can I control when deleting that it be deleted everywhere or just on the device? And alternately, can I choose certain photos not to sync via iCloud?
    iCloud makes me nervous. Once when I wanted to place all photos of my pup into a folder, I selected the photos on my iPhone and accidentally clicked delete instead of move. No big deal, I figured they'd be at home sync'd on the cloud. But since I'd deleted them on my phone, the cloud deleted them on my home computer too and the photos were lost.

    I am presuming that we cannot share downloaded apps and music between accounts because of the copyright issue,
    Though I'm no copyright lawyer, as long as it's within a household, you can share content among users. Such sharing is, absent specific language preventing it not present in the iTunes Store terms of use, generally considered to be "personal use". So you can share apps and music amongst your users on your computer and with their devices. You just can't give any of that content to friends or relatives who don't live with you.
    What I am not clear on, it making sure that this appears in each itunes account - is it easy to find the file storage folders that match the itunes accounts and what would these be?
    The iTunes library and files are by default in a user's Home/Music folder. But you don't have to find the folder; in fact putting a file into the folder yourself won't add the file to iTunes. Just drag the file into the iTunes window. iTunes will copy it to the correct location.
    Regards.

  • Best Practice for Managing a BPC Environment?

    My company is currently running a BPC 5.1 MS environment and will soon be upgrading to version 7.0 MS.  I was wondering if there is a white paper or some guidance that anyone can give with regard to the best practice for managing a BPC environment.  Which brings to light several questions in my mind:
    1.  Which department(s) in a company should u201Cownu201D the BPC application? 
    2. If both, whatu2019s SAPu2019s recommendation for segregation of duties?
    3. What roles should exist within our company to manage BPC?
    4. What type(s) of change control is SAPu2019s u201CBest Practiceu201D?
    We are currently evaluating the best way to manage the system across multiple departments, however there is no real business ownership in the system, which seems to be counter to the reason for having BPC as a solution in the first place.
    Any guidance on this would be very much appreciated.

    My company is currently running a BPC 5.1 MS environment and will soon be upgrading to version 7.0 MS.  I was wondering if there is a white paper or some guidance that anyone can give with regard to the best practice for managing a BPC environment.  Which brings to light several questions in my mind:
    1.  Which department(s) in a company should u201Cownu201D the BPC application? 
    2. If both, whatu2019s SAPu2019s recommendation for segregation of duties?
    3. What roles should exist within our company to manage BPC?
    4. What type(s) of change control is SAPu2019s u201CBest Practiceu201D?
    We are currently evaluating the best way to manage the system across multiple departments, however there is no real business ownership in the system, which seems to be counter to the reason for having BPC as a solution in the first place.
    Any guidance on this would be very much appreciated.

  • Advice re best practice for managing the scan listener logs and list logs

    Hi friends,
    I've just started a job as a RAC dba administrator for some big 24*7 systems, I've never worked with clusterware and RAC.
    2 Space problems
    1) Very large listener_scan2.log in /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/trace folder
    2) Heaps of log_nnn.xml files in /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/alert folder (4Gb used up)
    Welcome advice on the best way to manage these in the short term (i.e. delete manually) and the recommended practice and safest way (adri maybe not sure how it works with scan listeners)
    Welcome advice and commands that could be used to safely clean these up and put a robust mechanism in place for logfile management in RAC and CLusterware systems.
    Finally should I be checking the log files in /u01/11.2.0/grid/log/diag/tnslsnr/<server name>/listener_scan2/alert regulalrly ?
    My experience with listener logs is that they are only looked at when there are major connectivity issues and on the whole are ignored.
    Thanks for your help,
    Cheers, Rob

    Have you had any issues that require them for investigative purposes? If not, just remove them. Are the logs required for some sort of audit process? If yes, gzip them to a location where you can use your OS tape backup policies to retain them for n-days. Once you remove an active file, it should recreate the file and continue without interruption.

  • Best way to manage large photo library

    I currently use iPhoto to manage my 14,000+ images, but I am experiencing a few problems with it and wonder if ALR is a better alternative. My computer is running more and more slowly every time I add more to the library. I am worried it will crash the computer or make other applications inoperable, but am not sure what is the best way for me to manage the library.
    My concerns are:
    1. I have the files backed up on an external drive, but I don't want to also remove them from iPhoto because (I think) I will lose the captions I have entered for each image and the folders in which they are organized.
    2. I want to increase my library of images (plus captions) and allow it to be utilized in the near future by others at my workplace by putting the library, I suppose, on an external hard drive. Can that work with ALR?
    Thank you, in advance, for suggestions.

    Elisaa,
    LR2 is a much better storage and retrieval system than iPhoto. Plus, the LR2 editing features are simple and powerful. iPhoto has a file size threshold that is much lower than LR2.
    My LR2 database is 122,000 images (has been 150k) and does just fine.
    Other users are problematic with LR2; it is a single computer application with no network capabiity. Yes, you can have the database on an external drive and pass it around, but that kind of thing would not be convenient.
    Chris Crumley http://chriscrumley.com

  • Best way to manage iMac and two iPads?

    Have a new iMac (Intel,OS X Lion) and two iPad 2.  The iMac is mine the and iPads are my kids. We all have our own apple IDs.  I ultimately want to do any downloading/purchasing on the iMac and then transfer the music/apps/movies to the iPads.
    What is the best way to manage them so I can sync the iMac to the iPads? 
    Can I download apps/music etc. on my iMac and then sync it to both of the iPads?
    Do I need to use the same Apple ID on all of them if I want to sync the iMac to the iPads?   I would prefer not to store credit card info on the kids iPads.
    Whats the most efficient way to handle this?  Sorry for so many questions.  Its a hazard of being a newbie.
    Thanks, Courtney

    The best way I can think of is for each iMac user create their own account for them. Then when they log in they can sync to their own AppleID account. It keeps things simple and separate. If you don't know how to create accounts please look over http://docs.info.apple.com/article.html?path=Mac/10.7/en/mtusr001.html

  • Best way to manage large library with AAC and MP3 versions of files

    I have a large library of music. I listen to music through iTunes and iPod/iPhones, but also other devices which only support MP3, and not AAC. I typically convert iTunes purchases to MP3, but I'm left with two copies of each song in the same folder. I'm looking for recommendations on the best way to manage what would essentially be a duplicated music library - a high quality version I use with my iTunes/ipods, and a lower quality MP3 version for the devices that only support that format.

    I have had a similar problem. I have all my music residing on a NAS where I access it from iTunes (for managing my iPods/iPhones) and a Tivo PVR (which is connected to my house stereo system.) The problem is that Tivo does not recognize AAC. So I've used iTunes to create mp3 versions of all my purchased AAC music. Because the NAS is set as my iTunes media folder location, iTunes puts the mp3 copies back into the existing folder structure (which it keeps organised) on the NAS. Tivo accesses the NAS directly, over the network. But iTunes also puts the additional copy into the iTunes library which leaves me with multiple copies of the same songs on iTunes AND my iPods. Having multiple copies on the NAS (mp3 for Tivo and AAC for iPod) is OK: I've got plenty of space on the NAS and the Tivo doesn't 'see' the AAC files.
    The solution I'm planning to implement is to delete the mp3 entries from the library as soon as I create them (leaving the files in the media folder.) But what I'm looking is for a way to automatically select the mp3 copies (for deletion) from the existing duplicates list. Any ideas?

  • Best way to manage 100gb of pics

    I have about 100gb of photos in about a dozen different iphoto albums. I split them up because I was running out of disk space and needed to offload some. Now I have a much larger hard drive. What is the best way to manage this volume of pics? IPhoto? Is there some other management system that may be worth considering? Does it make sense to keep that many photos in one library, or to split them up by broad categories?

    For managing large number of photos with speed there are a number of 3rd party DAM (digital asset management) applications, both consumer and professional. You can learn about the pro apps at The DAM Forum.
    I useMedia Expression which can handle 128K photos per catalog. You setup and maintain the folder configuration. Multiple catalogs can be scanned for photos with the search results displayed in a new catalog window. Files can be renamed via EM and metadata written to the original files. It has some minimal editing capability built in also. Most of the pro apps have similar features. I use it for my photo management and iPhoto for projects like books, calendars, etc.
    For the consumer apps there's Photo Mechanic 4.6.2 and ACDSee Pro 1.1.148 to name just a couple.
    With iPhoto Library Manager managing multiple libraries you can copy photos between libraries while maintaining the metadata and keepsakes.
    Happy Holidays

  • Best way to manage "free shipping" products

    Looking for suggestions on how best to manage shipping charges at a product/MM level. For certain customer and product combinations we offer free shipping. What is the best way to manage this in master data?
    thank you!

    Not in Master Data but in Pricing settings. All you have to do is having a price condition that define your fright price, lets say ZFR1. This Condition will have associated an Access Sequence (ZFR1) that will contain a table (lets say 987) with the Customer information (whether you want to do a distinction customer by customer or you want to set an indicator at the customer master record to group several records, lets say in the field Shipping Conditions, where you can set the value Z1 - Chargeable and the same for materials, look for a field you can use for this purpose). The table 987 will have such values (among others that you may need), then in T-Code VK11 you create the Condition Record that fulfill the parameters to determine a fright cost for the customer.
    Include the Condition type ZFR1 into the Pricing Procedure you are using for your sales orders and there you go, every time a Chargeable customer is placing a Sales Order  with a Chargeable Material the system will determine the condition ZFR1 with the amount you set in Transaction VK11... or, depending on the properties you maintain at the Condition Type you can let the user that is taking the sales order to place the Fright Price manually.
    Hope it helps Cheryl !
    Saludos!!

Maybe you are looking for

  • How to log on to visual admin and create destination service

    Hi all, I see this statement everywhere while trying to configure adobe forms. *it was only the HTTP destination FPICF_DATA_<SID> that was not created in the Visual Admin under Cluster -> Services -> Destinations*_ I got 2 questions here:- 1. the pro

  • Disable Vertical scroll but enable Page down in Table control for BDC

    Hello All In my 4.6C sysem , i had enabled Scroll bar in table control by  populating TABC-lines = <No of records>...Then when i try to capture the BDC recording of this , then the scrolling event is not captured in BDC , as we all know..... So i put

  • How to map Idoc fields with external file

    Hi All, How to map Idoc fields with external file. I want to check the settings where Idoc fields are mapped with external file. Thanks in advance. Regards, Govind.

  • Safari/IE Discrepancies

    Help! My website, www.vbrosvtwin.com, was constructed on my Mac. It looks fine on my computer, and on the IE and Firefox samples generated by Dreamweaver CS3 Mac. However when viewed on a PC with an IE browser, blue outlines surround each JPEG and so

  • Can I deploy ViewObject or EntityObject to EntityBean?

    Hi guys, As I know ApplicationModule can be deployed as a Session Bean without change a code. So I am wondering if I can deploy ViewObject or EntityObject to Entity Bean without change a code? If it can, how to do it? If not, Could someone give an de