Db first pojo second or reverse?

Hi there,
I used to work with iBatis, first I used to design the database and then auto-generate the pojos/DAO from my db-design. Now I moved to hibernate.
Question: In hibernate, what approach is better to use, db first pojo second (create first the db and then reverse-engineer the pojo/daos) or pojo first - db second.
Thank you!

in a realistic environment the database is usually a given and cannot be (easily) changed by the developers.
More often than not the accounts you get simply won't have the authority needed to execute any DDL whatsoever.
In fact, in several environments I have worked in I didn't even have update access, the only database operations I was allowed to do were select statements and execution of a restricted set of stored procedures.
In such a situation, a Java first approach is obviously impossible.
Of course you could if you're starting from scratch install a local database and work in that, exporting the created table structure and giving it to a DBA in the hope he will recreate it inside the real database (but don't hold your breath, many of them won't do it, at best (for you) they'll change names, at worst (for you) they'll create something completely different that does the same thing more efficiently).
So you have to assume you will have to map an existing database to your application.

Similar Messages

  • First and second letters reversed when I type

    Is anyone else finding this? When I type, quite frequently the first and second letters are reversed. It happens across programs, and only started after I installed Lion. I assumed it would be a temporary bug, but it persists, annoyingly.

    What version of FireFox are you using?  Try upgrading.
    https://discussions.apple.com/message/15121441#15121441

  • Requirement to print data of first and second report of an ALV at once

    Hi,
    I have an interactive ALV report in which on double click of any of the record on first report, its details get displayed in second report. My requirement is to print all the data (of first and second report) at once.
    Kindly tell me how can I achieve this functionality.
    Regards,
    Seema Naharia

    Hi Seema,
    Try with this FM 'REUSE_ALV_HIERARCHICAL_LIST_DISPLAY'.   
    Regards,
    Sujatha B.

  • Can't import full track from CD, only first few seconds

    Please help. I'm at my wits' end on this.
    I bought an iPod Nano yesterday. I installed iTunes on my PC. My PC runs Windows XP. I Put a CD in the CDROM. Up came a list of 20 tracks with the correct lengths (all 3 minutes or so long.)
    I then tried to import them and all I got was about the first 12 - 15 seconds of each one. When they transfer to the iPod itself, each track sounds OK for the first 12 - 15 seconds, then stops.
    I have tried this with several different CDs from different bands, and different publishers. I have uninstalled iTunes and reinstalled it. I have tried importing by three methods:
    1) Using the big "Import from CD" button, top right.
    2) Dragging and dropping the CD icon onto the Library icon.
    3) Highlighting and dragging and dropping the tracks onto the library icon.
    I went back to the shop and the man there demonstrated the process, and he did exactly what I do, and it worked. He suggested I should uninstall/reinstall.
    I went to a different shop for a second opinion. They also said uninstall/reinstall.
    I have uninstalled and reinstalled. Still I find I can only get the first 15 seconds or so of each track.
    I have looked at every option on every drop down menu and can find nothing that appears relevant.
    I am now banging my head against a wall in desperation.
    Please help.
    Mike

    How frustrating, your cute little nano won't play!
    OK, what options do you have checked on iTunes > Edit >prefrences > Advanced > Importing?
    If you check off the option for "Use error correction when importing CDs" will it work?
    Also you might try reading some posts over on the importing & burning forums, the CD experts hang out over there. They will probably want to see the results of your iTunes > Help > Run CD Diagnostics ....
    http://discussions.apple.com/forum.jspa?forumID=791

  • Calendar first and second alerts switch on their own

    Hi, I've been having this problem for a while with my iPhone 4, wondering if anyone can help.
    I've tried looking if there's already a thread for this issue, but couldn't find one -- maybe I'm just not using the correct keywords.
    Every time I set my first and second alerts on my calendar appointment and saved them, they seem okay, but 2 minutes later when I go back to the same appointment, the first and second alerts switch on their own, e.g.: I set first alert to go on 2 hours before and second alert to go on 1 hour before the appointment. Save. When I return 2 minutes later, first alert turned to 1 hour before and second alert 2 hours before.
    Which is silly, since who needs their second alert to be farther than their actual appointment? Even iphone knows this and cancels the second alert altogether. By the time I've been alerted, I only have an hour to get ready for my next appointment.
    Anyone has encoutered this problem and has successfully solved them? I've tried setting my default time zone under setting to local, and even turning off iCloud, to no success.
    Any suggestion is greatly appreciated. Thanks.

    I have found what appears to be a resolution to this issue, when I add an event and I select the event time, the date time scroller opens up allowing me to select the time of the event.
    The issue occurs when I leave this selector expanded and continue to set the event properties. When the time selector is still open and you select the alert times, it swaps the alerts every time. When you collapse the event time selectors before choosing the alert times, the alerts are not switched.
    This bug appears to be an issue with the scrolling selector form item if there is more than one open it appears to error out.
    If you don't know how to collapse the event time selector, once you have selected the time, click on the date/time that is in red text just above it and it will collapse the selector.
    Hopefully this fixes the issue for others, and it is ridiculous that this has gone one for so long, not a good way to keep your customers Apple, my wife was so aggravated at this that she was about to cancel her iPhone.

  • TS1717 I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?

    I just downloaded a song and it only plays the first 50 seconds and then moves to the next song in the list. How can I get it to play the rest of the song?

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • How to get the first and second quarter from CRT

    Dear Freinds,
                    I have one scenario , the Functional SPEC says Read the payroll results and from the CRT  get all the 4 quaters
    for the wage type /5UH  and sum them and then pass on the to field in the main strucutre.
    Iam using the FM HR_GET_PAYROLL_RESULTS
      CALL FUNCTION 'HR_GET_PAYROLL_RESULTS'
        EXPORTING
          pernr                         = fp_v_pernr
          permo                         = fp_v_permo
          pabrj                         = fp_v_pabrj
          pabrp                         = fp_v_pabrp
          actual                        = 'A'
        TABLES
          result_tab                    = i_payresult
        EXCEPTIONS
          no_results                    = 1
          error_in_currency_conversion  = 2
          t500l_entry_not_found         = 3
          period_mismatch_error         = 4
          t549q_entry_not_found         = 5
          internal_error                = 6
          wrong_structure_of_result_tab = 7
          OTHERS                        = 8.
    Iam collecting all the Actual Result (current result) values
    on the selection screen iam passing for month april (04 2008)
    so this falls in the second quater .
    the internal table   i_payresult is picking up only the second quater (01-04-2008 to 30/04/2008 )  ,but since on the selection screen iam pasing as other period (04 2008) the internal table  i_payresult  returing from the FM  (HR_GET_PAYROLL_RESULTS) only   picks the second quater,
    could any one let meknow how i can pick up the first quarter as well and add the first and second quater to mee the requirement .
    Please help me in this regard
    Thanks & regards
    maduri

    Hi Manoj,
                 Thank you for giving me idea for going further  regarding this problem , so my final question for this is
    as per FS they said they are going to enter the payroll
    area and the other selection as 04 2008 
    In order to achieve the first quarter , because 04 2008 means they are going to enter for the second quarter , the payroll results will come only for second quarter and not for the first quater , if they want to sum all the two quarters then they shouldnt pass on the selection screen   the dates as 04 2008, instead they has to pas
    01 01 2008 to 30 06 2008 , as there is no point in they passing as 04 2008 as we are going to consider from 01 2008 to 062008 .   Please correst me if am correct regarding the dates passing on teh selection screen
    or if the user enters on theslection screen still enter 04 2008 and will be  able to acheive the first quarter ??
    Please answer me this point before i can change the logic of the code and tell to my FO regarding this point.
    thanks & regards
    Madhuri

  • My Hp Pavilion Sleekbook 14 14-b015TX Plays no sound in the first 30 seconds of any audio

    Hi!..
    Please help me with my sleekbook. The problem with this is that no music or souds will be played in its first 30 seconds of the music or even video. I already ask the hp store technician but when they tried it, it played the music or sound in the beginning of each music or video. But when I am in home or at school I always experience this kind of problem. My sleekbook is brandnew, I purchase it last month. What should I do with this? Please help me T_T . Thanks

    Hello jarvin,
    Thank you for the reply.  I believe you should call in and speak to a rep.
    Toll Free: 1-800-1441-0094
    +63 (2) 867-3551
    Monday-Friday
    08:30 AM – 05:30 PM
    That is the number you would call.  Please let me know what happens.
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • I attempted to download a song. It originally did not download correctly. I refreshed the download and it supposedly completed. Upon playing the song in both my library and on the Itunes store it will not play past the first 5 seconds. How can I fix this?

    It originally did not download correctly. I refreshed the download and it supposedly completed. Upon playing the song in both my library and on the Itunes store it will not play past the first 5 seconds. How can I fix this?

    Hello Whitney262,
    Thanks for using Apple Support Communities.
    I would go ahead and make sure you can first download the content, then remove the song from your iTunes Library, and download again from your iTunes past purchases.  The article below will walk you through the entire process:
    Download past purchases
    http://support.apple.com/kb/ht2519
    Take care,
    Alex H.

  • Hi, i've made a video in final cut pro, the problem is that when i export it not the entire video is played, just the first 3 seconds

    i made a video in final cut pro x. The entire thing isn't that long, however when it comes to sharing it only the very first few seconds are playe.
    Thanks,
    Jamie

    see where the clip ends and then the timeline becomes black? when i add on an extra clip that line thing with the arrow does not move and if i try to export the video not all of it is played, just till that arrow.

  • Installed Itunes: New PC, Windows 7 x64, updated ipod software, click to eject ipod, PC goes to blue screen, dumps data, restarts; songs do not play correctly on ipod. IE: play a song - only first few seconds will play. Some songs play fully, some do not.

    Installed Itunes: New PC, Windows 7 x64, updated ipod software, click to eject ipod, PC goes to blue screen, dumps data, restarts; songs do not
    play correctly on ipod. IE: play a song - only first few seconds will play. Some songs play fully, some do not.

    Hi just wanted to let you know I solved most of my XP problems with my new IPOD. It won't recognise the IPOD or driver and froze and locked up and then the battery died. After hours of trying different things here is what I did. I completly closed computer down. Waited 15 minutes turned on and reloaded everything. I put the usb cable in but not hooked up to IPOD. I turned off Mcaffee (all of it). After my computer came on. I then went and closed everything I didn't need in the bottom toolbar. (taskbar). I then reloaded the software and waited. Took forever to reload and I don't know why but whatever it worked but I DID NOT HOOK UP THE IPOD LIKE IT SAID! I instead shut down the computer after loading the software and waited 5 minutes and turned it back on. I again waited and shut of mcaffee. It loaded everything fine this time and said new hard ware and drivers detected. I plugged my IPOD in and YES I WAS UP AND RUNNING (THIS IS AFTER 6 HOURS OF PLAYING WITH OTHER THINGS!) I am able to load and play, burn, watch movies, see pictures and everything your suppose too! The only thing I see different than the instructions is I left my usb cable plugged in and when it said to eject the disk I didn't. I also didn't plug in the IPOD (5th Gen) and then I shut down waited and then restarted the computer. I hope this helps others because I know the feeling of wanting to return something you paid dearly for and worked hard at saving money to buy one and it doesn't work. My only thing I dislike about apple is they didn't supply a ac adapter for the IPOD and the instructions say to plug it up when trying to charge battery. DUHHHHHH, ya can't do that if ya don't have one and stores are closed and won' open until Monday! But at least I am up and running. I just hate having to plug up IPOD to computer daily to charge the battery which only last a half a day1

  • Previewing mp3's in the preview panel only works for the first 3 seconds

    When i click on an mp3 to preview in the panel it only plays the first few seconds or so. How can I fix this?

    My appologies. I have a Win 7 PC. Adobe Bridge CC . Yes all the files work on other players. And bridge will actually play wav and af files fine, but it wont play mp3's past a few seconds. It says it's playing in the preview pannel but the audio cuts out.

  • TS1424 I have downloaded a song and it will only play the first 18 seconds and starts again?

    I downloaded Clique by Kanye West on itunes and it all appered normal until you try to play the song either on my computer or iphone it plays the first 18 seconds and then goes to the next song even though it says the song is 4:52 any ideas how to fix this?

    Depending upon what country that you are in (music can't be re-downloaded in all countries) have you tried deleting it from your iTunes library and redownloading it via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes ? Re-downloading.
    If you aren't in a country where you can re-download music or if it re-downloads in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that song and use the 'Report a Problem' link.

  • HT203433 I purchased a song and only the first 10 seconds downloaded.  How do I download the entire song without paying for it again?

    A purchased song only downloaded the first 12 seconds.  I do I download the song again since it is already been paid for.

    Welcome to the Apple Community.
    Try deleting the problematic tune (electing to remove original file if/when prompted) and then re-downloading the file from the iTunes store.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option from the Quick Links section in the top right corner of the iTunes homepage in your iTunes application on your computer.
    You can re-download content purchased from the iTunes store (availability varies depending on location) using the purchased option at the bottom of the screen of the iTunes app (or video app on your iOS device.
    If the problem re-occurs, select the content which is causing a problem and use the 'Report a problem' button in Your Purchase History using your computer.

  • 2 hour 1080p sequence to NTSC DV widescreen. Quality drops for first 30 seconds.

    I am rendering a  2 hour clip from a 1080p sequence to a NTSC DV widescreen preset I have used in the past. The final render exibits strange behavior for the first 30 seconds or so. Quality (birtate it looks like) drops very low then back up mulitple times. Then it settles to the good quality for the rest of the clip. I have tried variable and constant bitrates, all different settings. nothing changes with shortening the length of the clip either.

    Are you rendering, or exporting?
    If the former, do you really need to?  May people do it out of habit, not realizing it's largely unnecessary
    If the latter, what are the media specs?  What are the sequence and export settings?

Maybe you are looking for

  • Pages 2.0 crash in Page Setup

    Hi, I'm running Pages 2.0 on a 17" G5 iMac 2GHZ Rev B, 10.4.6, 1 GB RAM, printing wirelessly to an Epson CX4800 and Stylus Photo R200. I had been getting the "error while printing" window so I tried the suggestion to trash the .plist files with "prin

  • Why no support for bluetooth headphones

    Why is there no real support on the Iphone 3GS for the BT headphones that Apple sells. No next/previous except voice which is not something really usable. I know that every other phone out there can and does support these functions. So how do we get

  • Experiment with 2 monitor and a laptop

    I got 2 older monitors from a friend (Dell 1905fp)  the other day. They are working as they should and so on. But is it possible to run these 2 on a laptop with only 1 VGA and 1 HDMI? The monitors do have 1 VGA and 1 DVI. I guess it's possible to get

  • New ideas for pacman features

    I'd like to start a discussion about pacman and some features I would like to see in it. If I compile something with srcpac instead of installing with pacman, it would be nice if pacman remembered that I did so and recompiled the package next time I

  • Deployment of standalone Resource Adapter

    I've deployed a standalone resource adapter on my application server. I have a web application that accesses it. I have a client.jar in the libs directory of the web application which contains the class for SquareInteractionSpecImpl which is needed b