All I want to do is CRUD an Object to a Database

I don't need security or transactions or XML marshalling or caching. I just want to CRUD!
First I started with simple JDBC. Tables of tables of tables. Very tedious.
Then I tried JAXB->XML->Oracle XML DB. A little bleeding edge. Vendor specific solution makes me cry.
Then I found PERSISTENCE. Problems solved, right?
Well, after a week of hell trying to get Netbeans/JAXB/Glassfish/Hibernate to play nicely, I find out:
1) Each entity needs it's own primary key, GLOBALLY unique to all entities of its type (not just unique within the main entity I'm persisting). Why can't I just reference each "sub-entity" based upon the "main entity's" primary key and the sub-entity's "local" primary key?
2) Tracking hibernate SQL errors is like pulling teeth. A single "RollbackException" with no SQL error tells me nothing!
3) The seemingly intuitive EntityManager class has methods that aren't behaving intuitively. Using an EntityManager. EM.contain does not tell me whether the db contains an entity (why can't I use this method with a primary key instead of a whole object?) EM.merge does not update a collection ob "sub-entity's", it just adds any new ones it finds. Etc.
Can EJB3 help me? I'm about to go back to JDBC because I'm getting frustrated that such a simple ORM solution seems out of my grasp!

EJB3 JPA has the problems you described.
Maybe RIFE CRUD could solve your problem:
https://rife-crud.dev.java.net/

Similar Messages

  • All I want to do is get the value associated..

    All I want to do is get the value associated with a dropdown item...
    1. I have a combo box
    2. It has text values that you can click
    3. The text values have export values associated with it
    4. When I click a text value from the list, I want to get the numeric value associated with it
    Example combo box:
    "Orange" has the export value of "1234"
    When I click "orange" I want to get the export value "1234" and alert it to the screen
    I'm using javascript, here's what I have so far:
    In the combo box properties I have the following validation script:
    theFruitClicked();
    I have a function in the document javascript:
    function theFruitClicked()
         app.alert(event.value);
    This is alerting the text value not the export value.
    What else should I do to get the export value?
    Thank You.

    You may need the scripting forum http://forums.adobe.com/community/acrobat

  • All I want to do is sync one video file from my computer to the iPad

    Hi all-
    I ripped a "test" mpeg4 video on my home computer that I want to transfer to my iPad. That's all I want to do. I "assume" that this test video has to be placed in a folder somewhere on my main computer's hard drive so that iTunes "sees it" and puts it under one of those little tabs in iTunes like "movies" or "tv shows." Where do I put my test video so that it will sync with my iPad? I see the folders that have my music library for my iPod (Documents and Settings/Owner/My Documents/My Music/iTues) so I assume there must be some place I need to place this video in order to get it to transfer from my PC to the iPad.
    Thanks,
    Steve

    You need to import it into the iTunes library from within iTunes. Content moved to the iTunes library folder manually won't be recognized by iTunes.
    (51376)

  • How does this **** work?  I have an Ipad and Iphone and an Itunes account and it won't sync anything...i don't understand why I spent a fortune on this crap that doesn't work.  All I want to do is get my phone and ipad in sync but NO that isn't doable

    Is everything Apple does ****?  I can't sync anything all I want to do is get by iphone and ipad on the same page...but the syncing wants me to agree to delete everything...this is nuts...there is no help...is Apple's idea of help have the users be there help desk?  there is no where to go and it is a joke!

    And with that kind of attitude, it's unlikely that anyone here (and there are some extremely knowledgeable people here) will want to help.
    If you really want help and aren't just here to rant, I suggest you start another thread in which you lay out the problem, including any error messages you may have received and any steps you may already have taken to solve the problem. Include details about any computer operating systems you may be using. And, do not include the attitude.
    Best of luck.

  • HT201342 How will this benefit me. I have a Mac computer that i upgraded to Mountain lion, a macbook pro and an iPhone 4s which has the latest software. all i want is simplicity and to have one email account which which will not duplicate everything 4 or

    I have been asked to set up an Icloud account by Apple.
    How will having another icloud email benefit me. I have my work email which is all i require, but had to set up a @me account to get email on my Macbook.
    I have a Mac computer that i upgraded to Mountain lion, a macbook pro and an iPhone 4s which has the latest software. all i want is simplicity and to have one email account which which will not duplicate everything 4 or 5 times.
    My notes are duplicated, i have to delete my emails individually on all devices so whenever i put my phone on, all the emails i have deleted at work re-appear on my phone and again the same thing happens on my Macbook pro. I seem to spend all my time deleting emails 3 times.
    Is there something simple in the set up of these that i am missing?
    Any help would be appreciated

    I have been asked to set up an Icloud account by Apple.
    How will having another icloud email benefit me. I have my work email which is all i require, but had to set up a @me account to get email on my Macbook.
    I have a Mac computer that i upgraded to Mountain lion, a macbook pro and an iPhone 4s which has the latest software. all i want is simplicity and to have one email account which which will not duplicate everything 4 or 5 times.
    My notes are duplicated, i have to delete my emails individually on all devices so whenever i put my phone on, all the emails i have deleted at work re-appear on my phone and again the same thing happens on my Macbook pro. I seem to spend all my time deleting emails 3 times.
    Is there something simple in the set up of these that i am missing?
    Any help would be appreciated

  • Having continuous issues with my iMac, all I want to do is perform a clean install... at my wit's end. Help please. :(

    I apologize in advice if this story is discombobulated or more information is needed to provide me with an answer. I will do my best to provide as much details as possible, but this is a problem that has been occuring for the past few weeks and some things I've forgotten the specifics of.
    I will start by explaining that my iMac specs are:
    Processor 3.06 GHz Intel Core 2 Duo
    Memory 4 GB 1067 MHz DDR3
    Version 10.6.8
    I've owned this iMac since about April of 2010. I've never had any problems with it until recently. At one point in time, I had a Boot Camp partition made in order to install Windows, as I wanted to run some games that weren't available to Mac users. After awhile, I eventually bought a Windows Laptop for my gaming needs. When this happened, I decided to erase previously stated Boot Camp partition in order to free up more space on my hard drive.
    After a few months, had major issues involving a trojan virus on my laptop, it destroyed my hard drive, and I wasn't able to buy a new one at that time. Recently decided to try and create a new Boot Camp partition to reinstall Windows. When I attempted that, (I apologize, I don't remember the specific error) it wouldn't allow me, and from what I remember after doing some google research, it sounded like somehow my hard drive had become disorganized, and needed to somehow be reorganized.
    At some point in my google research I found that using the Repair function in Disk Utilities would possibly help. When I tried that, (the only reason I know this is because I tried just now to get the error to pop up) I'm given a message "This disk needs to be repaired. Start up your computer with another disk (such as your Mac OS X installation disc), and then use Disk Utility to repair this disk.
    So here I'm thinking, "okay! No big deal! I have the disk still, I will just back up my hard drive to an external hard drive". So I buy an external HDD, back up everything I need. I then put the disk in, and my optical drive spends some time thinking, then spits it back out. It does this repeatedly. I do some more google research, find that optical drives crapping out on mac users isn't all that uncommon. I try to clean it with a trick someone suggested. I then tilted my iMac to one side, it accepts a cd! I try it again, and I'm no longer able to trick my iMac into reading disks. Sad face.
    Instead of hefting large sums of cash at Apple to replace my optical drive, I buy a far more affordable external cd/dvd drive that is working perfectly fine. So after waiting for that to be delivered, 3 days later, I'm excited to finally get a clean install with my OS X drive. At this point, I care little about repairing, and have decided to just completely clean install. I restart my iMac, boot from disk, and I get the spinny thing for about 20 minutes. I think, "hmm... should it take this long?" So I reboot and try again. Same thing. I then let it run overnight, and wake up to spinny thing. When my Mac is on, it reads the dvd just fine. It just won't boot from it and let me start the clean install.
    So then I get the idea maybe I can do a remote install of the disk from my friend's macbook. No such luck, won't seem to recognize anything. Then I see that I can make a copy of the disk image to my computer, and burn that image to a partition made on my external HDD, so that I can boot from that. Well, the only info I could find was a gentleman burning a downloaded version of OSX Lion, but I figured, "hey, its the same thing, right?" I guess not. I tried copying the image using the restore function in Disk Utilities, and it does indeed show up when I hold Option at start up, but booting from it does not start up properly. It starts up like any normal time I restart. I'm thinking its cause the way I copied it didn't involve a .dmg file.
    So I try to copy the image to a file on my computer, but when I do that, I get some sort of input/output error.
    What can I do at this point? I thought I originally set up Time Machine but when I checked recently, no such luck. All I want is a fresh reboot of my Mac. I'm guessing somehow my hard drive became corrupted in some way. I mean, it truly doesn't seem to be affecting anything, except somehow even after deleting all known movie, music, game, etc. files, I still am using up 270 gb of space. Maybe I never un-did the Boot Camp partition properly and kinda screwed myself on this one.
    I've tried just about everything. I never invested in Apple Care, but even had I done so, I think it would have exceeded the warranty, as I had thought it was 2 years. I could be wrong, either way, its water under the bridge now. I need to fix this myself. I'd still like to use my iMac for general use, and to utilize the 1 TB of storage it possesses.
    Any help is greatly appreciated, sorry for the wall of text, its been a complicated few weeks. Thanks!

    Whew... never buy an iMac or Laptop from Apple without the 3 year extended AppleCare... well 2 years extended... & I think they should be called on this, they should come with a 5 year Warranty, with more available if you want.
    I think, "hmm... should it take this long?"
    No way, Houston, we haave a problem, not sure what... RAM, Logic Board, etcd.
    Tough without the Install disc, but some things to try...
    Does it boot to Single User Mode, CMD+s keys at bootup, if so try...
    /sbin/fsck -fy
    Repeat until it shows no errors fixed.
    (Space between fsck AND -fy important).
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck...
    http://docs.info.apple.com/article.html?artnum=106214
    Report outcome please.

  • All I want to do is upgrade two phones ... WHY IS THIS SO HARD?  And, WHY CAN'T VERIZON DO THIS???!!!

    In the past month, I've spoken to dozens of Verizon reps on the phone, been disconnected a few times, been at 4 different stores, been told several different things by EVERYONE, been told "oh sure, we can do that" only to be told by someone else "no we can't" ... how can you run a business like this??!!!
    I AM SO FRUSTRATED RIGHT NOW I COULD SCREAM!!!!!!!!!!!!!!!!!!!!!
    First, it was because our account was listed as a monthly paid cash account,
    then, it was because we were trying to get phones at a franchise store,
    then, it was because our account was set up as a business account (according to the Verizon rep I met at Wal-Mart, even though the Vz reps on the phone tell me it's listed as a personal account AND I sign onto our account as a personal account)
    then, we were told to order our upgrades on over the phone (but then we were told we would have to pay for the phones and wait for a debit card rebate to be mailed to us, which my husband does not want to do)
    then, we were told to order the upgrade phones online, but every time I try I get a processing error,
    then, the computer tells us to call a specific phone number if we believe the error was not right,
    then, the phone recording message repeats itself through multiple options TWICE and then hangs up on me,
    then, I call another Verizon number and get a "helpful" rep who tells me we can order them on the phone ... only to come back to me after being on hold and telling me they have gone home for the day,
    then, I try to get help online at Verizon.com and NO ONE IS AVAILABLE TO HELP ME.
    I've been to Wal-Mart 3 or 4 times, been to the local franchise store, been to a store in the Chicago area, and have spoken with Verizon reps on the phone until I'm blue, and, still ... STILL ... I don't have new phones.
    (removed) ALL I WANT IS TO UPGRADE OUR 2 PHONES ... WHY IS THIS SO HARD???!!!
    We have been a Verizon customer for over 16 years, apparently that means NOTHING.
    Edited as required by the Verizon Wireless Terms of Service
    Message was edited by: Admin Moderator

    That is because the people who edit the posts are NOT CS agents but instead are people who are employed by the vendor Verizon has contracted to host the forum. I don't even believe they are Verizon employees, but employees of the Jive forum platform.
    For example, if a Verizon store had an electrician repairing the lighting in one of their stores, you wouldn't necessarily walk in and expect them to get off their ladder to assist you with information about a phone since they had nothing better to do than to work on the lights.  First of all, they aren't salesmen or CS agents. Second, they may not even have the capability to give you the assistance you are requesting.

  • Adobe is giving me the runaround when all i want to do is download the programs i bought several years ago. Anyone else experience this? Contacted support, was told i would get a call back.  Account blocked so I had to create a new one to download trial v

    Adobe is giving me the runaround when all i want to do is download the programs i bought several years ago. Anyone else experience this? Contacted support, was told i would get a call back.  Account blocked so I had to create a new one to download trial versions to compete my work.  So frustrated.

    You will need to have the serial number to activate the products. Please have then handy & also check the compatibility of the operating systems.
    Regards
    Rajshree

  • HT204053 All I want to do is share my calendar and contacts w/my other computer that a family member uses?

    All I want to do is share my calendar and contacts w/my other computer that a family member uses?

    If you all log into iCloud with the same AppleID, then you can all have access to the same Contacts, Calendars, Mail, Notes, Safari Bookmarks. Or, you can only select some of those, but individualized iCloud email would not be possible. That's probably not really what you want to do, though.
    You can also just share out your Calendars via iCloud, no need to use same AppleID. They can subscribe to them and I believe you can authorize them to make changes.
    Looking at Contacts, it does look like you could create another iCloud account, independent of the iCloud account in the iCloud system prefs, but I don't have another to test at the moment. If that works for the Contacts, they would have their own set and yours too.

  • I have a ipod mini, i upgraded my battery, and drive to 32 GB, my itunes will not see it, and the mini only shows file pic error. I have a 10.4.11 powerbook 667 so i can't upgrade to a newer itunes, which is 4.7.1, all i want is a better battery-more song

    Hi,
    I have a older ipod mini which needed a battery, so i also upgraded the drive to a 32 GB flash drive. When i did the upgrade, it saw the itunes fine, but it never loaded anything. When i unplug it it shows the folder with "!" icon, and i can't get my itunes to see it. I have a powerbook 667 mhz g4 with itunes 10.4.11, so i can't upgrade to leopard. All i wanted was a better battery and a bit more song volume. This older 4 GB will fit back in and works fine, but i'm upset i spent $37 to only fail. What am i doing wrong? itunes is 4.7.1 How can i over come this?

    In Disk Utility, select the iPod (the device) in the sidebar.  So, if you see the iPod in the sidbar with a "volume" indented below the iPod, select the "device" (not the volume).
    Go to the Erase tab to the right.  The choice for Format is Mac OS Extended (Journaled).  Name does not matter, because iTunes will rename it during the Restore.  Click Erase.
    it "flashed" out of itunes.
    That may be an issue with the USB connection.  As a test, shut down (power off) the Mac.  Disconnect other USB devices including USB hub, except for standard USB keyboard and mouse (if normally used).  SInce this is a laptop, connect it to its power adapter, so that it's not running on battery power.
    Connect the iPod to a direct USB port on the Mac.  Note if there is any difference regarding the iPod not maintaining a connection.

  • Can I force the bootcamp wizard to skip looking for the bootcamp drivers?  I have already downloaded the latest drivers and loaded them on a FAT usb drive.  All I want is for bootcamp to create the partition and allow me to install windows 8 pro

    Hi Everyone,
    Can I force the bootcamp wizard to skip looking for the bootcamp drivers?  I have already downloaded the latest drivers and loaded them on a FAT usb drive.  All I want is for bootcamp to create the partition and allow me to install windows 8 pro.
    The bootcamp drivers have been downloaded from apple's website.  Filename:  BootCamp5.0.5033
    I have a iMac 27" late 2013 model.
    NOTE:  I have downloaded the drivers manually from apples support site as the bootcamp wizard fails third of the way through the download.
    Appreciate any assistance.
    Regards,
    asdutoit

    There is a missing point in this thread, and it is that the Boot Camp drivers for the Late 2013 iMac can only be downloaded from Boot Camp Assistant. The Boot Camp drivers available in the Apple site are not compatible with that iMac.
    Delete the Boot Camp drivers from the USB drive, open Boot Camp Assistant and try to download the Boot Camp drivers again. If you get a message telling you that they could not be downloaded, I would try reinstalling OS X through OS X Recovery, by holding down Command and R keys while your Mac is starting up

  • I thought I was creating free space by erasing free space using disk utility but what I really did was literally ERASE MY FREE SPACE on my Macbook Pro 10.8.4 and all I want to know is what to do to recover my free space?

    When I click on ABOUT THIS MAC and then on STORAGE it shows that I have like 700 gb of "OTHER" in yellow and all I want is for the yellow to disappear and have all my free space again! please someone help me
    <Edited by Host>

    Your free space hasn't gone anywhere. This is simply the initial result of the process. However, your free space should be there once you need to use it.
    What is "Other" and What Can I Do About It?- Apple Support Communities

  • TS2634 i keep getting an error when trying to connect my phone to my imac g5 saying it cannot be used because it requires 10.6.3 when ive downloaded this it says my mad does not support this. all i want to do is sync my iphone4 with my imac

    can anyone help when i try to connect my iphone4 to sync with imac g5 i get a message stating my iphone cannot be used as it requires itunes version 10.6.3 or later when ive tried to download this on my imac it says it does not support it.
    All i want to do is sync my iphone 4 with my imac g5 can anyone help

    Click here and download the software. Unless otherwise noted, a device running iOS 6 requires at least Mac OS X 10.5.8 and iTunes 10.6.3 to be synced from a Mac.
    (78390)

  • All I want is audio from a DVD!

    I have a few music DVD's, and all I want is to get the audio from them into my iPod. 1) I've seen the debate rage re. whether or not one SHOULD be able to copy DVD's (video and all), but no one ever definitively asked or answered, much less on this specific question re. "audio only from a DVD imported to iPod or iTunes Library." 2) I understand that if it involves a "work-around" of copy right protection measures, that such "work-around" instructions cannot be given here. 3) But if that is the case, WHY?! I don't get it... copy right laws allow us to burn copies of CD's we own, why are DVD's any different?
    Andrew

    hey there Addys,
    DVD's use a different codec, sample & bit rate as well as a bunch of other specs than CDs. also commercial DVDs, be they Audio or Video have a copy protection scheme. in addition, the few Audio DVDs i've heard also have some sort of image. music CD's on the other hand have no copy protection to circumvent. iPod & iTunes music will only do stereo audio anyway, not the 5.1 you may have on your Audio DVD.
    it's against the terms of use here to discuss ways to circumvent DVD copy protection.

  • HT1937 I can't get do this iCloud, I just do not get it! I looked at so many instructions to try and help me and nothing seems to work. All I want to do is copy and paste all my photo's and videos as I used to before the iphone updated to iOS. Can you hel

    I can't do this iCloud thing, I just do not get it! I looked at so many instructions to try and help me and nothing seems to work. All I want to do is copy and paste all my photo's and videos as I used to before the iphone updated to iOS. Can you help me? P
    I've tried looking for the devise in My computer but all it says is iCloud. I really want to find the DMIC folder and I don't know how!

    Emma Norton wrote:
    I've tried looking for the devise in My computer but all it says is iCloud.
    You should not see anything labeled iCloud in Windows Explorer.

Maybe you are looking for