Junior needs help in EJB3 - Hibernate

Hi all,...
i am hoping some of you can help me with providing me some additional information. I am going to do my first project what i'm not planning to do with JDBC. this time i want to use either Hibernate or EJB3.
after reading tons of articles about these 2 techniques i still dont know what the exact difference is. i have NEVER worked with EJB's (v2) so i have never experienced that is slow, difficult etc.
i read that hibernate is fast, easy, and good for smaller projects. and i know that EJB 2 is something i should not use because its hard to learn, i have to do a lot of unnecessary files, etc...
but with EJB3, i only hear "its almost the same is hibernate". but what is different then, and when should i use what?
I hope someone can give me some information about this...
Thanks

Eh, EJBs and Hibernate are two entirely different
things, mostly... one's for designing
modular/distributed enterprise applications, the
other one's a persistency framework. EJBs do come
with some persistency stuff, but iff DB access is all
you want, using EJBs makes no sense at all.although hibernate was the inspiration for EJB3's entity bean replacement, and indeed isn't hibernate3 pretty much an implementation of EJB3 persistence? close enough for jboss to use it as it's EJB3 persistence impl, anyway. I think that's what he's probably getting at
@OP: it might be worth you using EJB2.1 and entity beans for this, if it's just a pet project or an exercise. nobody uses EJB entity beans any more, but it's worth using them once, just so you can talk in interviews about why they're A Bad Thing ™. don't bother with BMP, that's just a layer of extra work over JDBC. go for CMP, just for the experience. you might want a copy of XDoclet, too, though :-)

Similar Messages

  • Need help with EJB3.0 persistence

    Hi,
    I developed simple project with two entity beans (3.0) reverse engineered from database and sessionbean facade. When attempting to deploy i got the following error:
    2006-05-18 14:36:49.390 ERROR J2EE EJB3027 [current-workspace-app] An error occured deploying EJB module: Исключение [TOPLINK-7199] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    06/05/18 14:36:49 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules:
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    18.05.2006 14:36:49 com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules:
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    2006-05-18 14:36:49.531 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error initializing ejb-modules:
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 8765 ms.
    06/05/18 14:36:52 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    Can somebody help me to resolve that.

    Hi,
    I developed simple project with two entity beans (3.0) reverse engineered from database and sessionbean facade. When attempting to deploy i got the following error:
    2006-05-18 14:36:49.390 ERROR J2EE EJB3027 [current-workspace-app] An error occured deploying EJB module: Исключение [TOPLINK-7199] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.ValidationException
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    06/05/18 14:36:49 WARNING: Application.setConfig Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules:
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    18.05.2006 14:36:49 com.evermind.server.Application setConfig
    WARNING: Application: current-workspace-app is in failed state as initialization failedjava.lang.InstantiationException: Error initializing ejb-modules:
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    2006-05-18 14:36:49.531 WARNING J2EE 0JR0013 Exception initializing deployed application: current-workspace-app. Error initializing ejb-modules:
    Описание исключения: Атрибут [uGkPpAdrCollection] в классе объекта [class ejb.persistence.UGkPp] имеет значение mappedBy, равное [gkpp], которое не существует в объемлющем классе объектов [class ejb.persistence.UGkPpAdr]. Если объемлющим классом объектов является @EmbeddableSuperclass, это недопустимо - атрибут должен ссылаться на верный подкласс.
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 8765 ms.
    06/05/18 14:36:52 Oracle Containers for J2EE 10g (10.1.3.0.0) initialized
    Can somebody help me to resolve that.

  • Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.

    Hey guys need help regarding iTunes U. My school is moving for iOS and Mac in the classroom and I have been appointed Junior Administrator for the schools technical department and integrating these devices into the classroom.
    I have an appointment with a director on Tuesday. I want to demo iTunes U. Problem is I have never used it before and have no idea how to set it up and even if I should sign up.
    Please help any ideas regarding iTunes U and how I should direct the meeting tomorrow.
    Please please post here.
    Thanks
    Tiaan

    Greetings fcit@!A,
    After reviewing your post, it sounds like you are not able to select none as your payment type. I would recommend that you read this article, it may be able to help the issue.
    Why can’t I select None when I edit my Apple ID payment information? - Apple Support
    Thanks for using Apple Support Communities.
    Take care,
    Mario

  • Any one with BT using Apples Mail need help

    Hi
    Anyone with BT and using Apples Mail please can you please send me all the settings that are needed. I have tried BT web site and even used on line help but nothing has helped. The problem is I can receive but not send, the message goes into the out box put then keeps coming back saying ""Too many messages" and this keeps happening over and over, sometimes in the mail activities box it says one of three when there is only one.
    TA

    a quick point, my stacks are EJB3+Hibernate+MySQL, don't know if hibernate has anything to do with my question...
    again, thanks.., pls provide ur input/insights...

  • I need help to convert hours,minutes and seconds to seconds.

    Hi, I need help with the code on how to convert the hours,minutes and seconds to seconds. I don't know which formula to use so that I can get the results in total number of seconds. Thanks.

    Jos ("when in doubt: parenthesize correctly")Bracist.You're more right than you'd known: last week I climbed over a safety
    fence (which I wasn't supposed to do of course) to adjust the position
    of an optical measurement device we installed in a huge production
    machine in a factory. I stepped on some sort of hose; the end of that
    hose broke loose and hit me straight in the middle of my lower jaw. My
    front teeth feel wiggly now and my molars on the left of my lower jaw are
    not what they used to be. This Wednesday I get that all fixed at some
    dental clinic. Keep your fingers crossed because me+dentists == war.
    My tongue continuously keeps on reporting craters and disaster ;-)
    Jos, how's it going? Besides a possible loss of some teeth, I'm fine ;-)
    My Spring/Hibernate journey continues. I'm trying out Hibernate 3.2
    annotations and the Ant tools. So far, so good.Good to hear. At the moment I'm putting my teeth (sic) in that darn snmp
    stuff which simply refuses to work the way I want it and besides that I'm
    heavily involved in some of that SAP stuff. Spring is not in the vicinity for
    me in the next couple of months sadly enough.
    kind regards,
    Jos

  • HT201250 I am very frustrated. New to iMac products. Just bought a 27" iMac two days ago. Received no manual, no booklet with ID registration number, etc. Need help migrating PC to iMac. How do I get in touch?

    Need help migrating pc to imac. Do not have manual. Trying to get infornation online, but, cannot get an answer.
    I have downloaded pc migration assistant to pc windows 8 pro. Was able to get imac to finally give me "the number"
    Did the same with pc received number once, not same as imac. Pop up window with info dissappers and cannot recover
    What am I doing wrong? Paid extra for extended support package and it took hours to finally get it registered and approved.
    However, no help. Yikes, I feel like a make another great mistake!

    First: If you purchased AppleCare you should call back at 1-800-APL-CARE and ask for further assistance.  You'll want to learn how to retrieve your operating system version and your IMac's serial number as you'll need these for when you call AppleCare:
    Click on the Black Apple in the top left hand corner of your Imac's physical monitor
    Click on About this Mac from the drop down menu
    Below the silver Apple and "OS X" it will say "Version 10.x.x"  (If this number is not 10.8.4, run Software Update by hitting the button marked "Software Update")
    Click on this number twice in a row.  This is your machine's serial number.  (zeros can be used; the letter "O" is never used).
    http://support.apple.com/kb/HT1349 for details how to find serial numbers on Apple products
    If you have an Apple ID (you can create one at appleid.apple.com), you can login to supportprofile.apple.com, register an Apple product, and sign up for VoicePass, which, if you give your product a name e.g. Maria's Imac, you can speak that over the phone and skip having to give the serial number when you call. 
    If you have an Apple ID, you can also call AppleCare and ask them to activate VoicePass.
    This is the link for your tech specs: http://support.apple.com/kb/SP667
    This is the link for your quick start guide: http://manuals.info.apple.com/en_US/imac_late2012_quickstart.pdf
    This is the link for important product information: http://manuals.info.apple.com/en_US/imac_late2012_quickstart.pdf
    Second: this is an educated guess: Your new Imac and your PC need to be either on the same wifi network or you need to connect them physically with an Ethernet cable (available at Radio Shack, Wal Mart, etc).  My guess is that they are not, and so your IMac and PC are not talking to each other.  That might be why you are seeing a different code on the PC.
    Time Machine would not be relevant to your issue.  http://support.apple.com/kb/HT4796 is the link to relevant instructions, however it left out some housekeeping you should do on your Imac before you begin a migration
    Run Software Update on the IMac to confirm that the latest updates are installed.
    On the IMac, make sure that you have the latest versions of any third-party software.
    On the source Mac, open System Preferences, click Sharing, and make sure there is a name in the Computer Name field.
    Do not let either computer go to sleep while you are attempting to migrate. To disable sleep on the IMac
    Choose System Preferences from the Apple () menu.
    Choose Energy Saver from the View menu.
    Adjust the "Computer sleep:" slider to Never. (Change this back after the migration is done).
    You can adjust "Display Sleep" to a few minutes - this won't affect the migration
    Uncheck the box if checked next to "Put Hard Disks to sleep when possible"
    I don't know Windows 8 but this link looks promising as to how to disable sleep: http://techmell.net/how-to/disable-enable-sleep-mode-hibernate-windows-8/
    Once you've done this, either connect both Mac and PC to the same wifi network and surf the web with each to confirm that connection is working - or connect them to each other with an Ethernet cable. 
    Then relaunch Migration Assistant on your Imac and your PC, and follow the instructions in http://support.apple.com/kb/HT4796 starting with your IMac, or call AppleCare back. 
    Understand that if you have further issues, you'll need to help AppleCare help you by:
    walking them through the steps you've taken in Migration Assistant
    letting them guide you as they isolate the issue to either:
    The Imac's software
    The IMac's hardware
    The PC's software
    The PC's hardware
    Firewall settings (maybe - especially if 3rd party firewalls are installed)
    The wifi connection, if used
    The ethernet connection, if used
    I think the issue is likely what I guessed, or it's a software issue.
    To learn more about your new Mac, I recommend this link: http://www.apple.com/support/imac/intel/
    And this book: http://www.amazon.com/books/dp/0789749890
    I am a technical support professional who troubleshoots Macs all day long.  I do this for a living.  The book above is the most accurate, and easy to understand book I've seen with respect to using Mountain Lion and its various applications.  It's for a MacBook but the focus is on the software which is why I recommend it.
    Don't feel like you have to rush to upgrade to OS X Mavericks.  In fact, you should always confirm both all the hardware and software you use is compatible with any new operating system before you upgrade.  And ask yourself: "why do I need it now?"  Because it's new is not a good answer.
    In the future, specifying any troubleshooting others have done will help those on these boards help you.  Also, don't let a specific issue lead you to assume you've made an all-encompassing mistake.  It's just one issue, and it's resolvable.
    And everyone else: giving a dozen recommendations for reading will only leave the petitioner bewildered.  Start with three.  And try responding with a hypothesis as to what's causing the primary problem!

  • SAP BPC - Formation - Need help

    Hello everybody,
    First of all, I want to thank all people who will at least read my thread. I'm a junior consultant who need help on SAP BPC (Business Planning and Consolidation) - ex. OutllookSoft. So, if you have some tutorials, some documents, something that can help me to learn how to use SAP BPC, I will be very grateful to you. Up to now, I just read the "Help" of SAP BPC (OutlookSoft 4.2.419), the version I have to use. But it is just a technical help, I have nothing about the terms used (what is an application, a member, etc.), the philosophy of the tool, etc. To finish, if someone, from Paris (in France) is using this tool, I can pay him or her to form me on this tool.
    Thanks a lot.
    Best regards, Ivan.
    PS: sorry for my English...

    Hi,
    You can go to
    http://help.sap.com/
    And navigate to SAP Business Objects -> EPM Solutions -> Business Planning and Consolidation.
    Under the heading, SAP BPC 5.0, click on "Application help and Installation Guide".
    This will take you to the document repository in SAP Marketplace. You will get the documents which will provide you with the basic understanding of the tool.
    However, you will need S-user ID to ligon to SAP Marketplace.
    Hope this helps.

  • Need help to develop Pythagoras theorem-

    Hi i need help to develop proofs 2,3,4
    of pythagoras theorems in java as demonstrations
    These are applets can anyone help me with it or give me an idea of how to go about developing it -
    the site is the following
    http://www.uni-koeln.de/ew-fak/Mathe/Projekte/VisuPro/pythagoras/pythagoras.html
    then double click on the screen to make it start

    Pardon my ASCII art, but I've always liked the following, simple, geometric proof:
         a                   b
    ---------------------------------------+
    |       |                                |
    a|   I   |              II                |
    |       |                                |
    ---------------------------------------+
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    b|  IV   |              III               |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    |       |                                |
    ---------------------------------------+It almost goes without saying that I+II+III+IV == (a+b)^2, and II == IV == a*b,
    I == a*a and III == b*b, showing that (a+b)^2 == a^2+a*b+a*b+b^2.
    I hope the following sketch makes sense, stand back, ASCII art alert again:     a                   b
    ---------------------------------------+
    |               .             VI         |
    |     .                 .                |a
    | V                               .      |
    |                                        +
    |                                        |
    |   .                                    |
    b|                                     .  |
    |                                        |
    |                  IX                    |
    | .                                      |
    |                                    .   |b
    |                                        |
    +                                        |
    |      .                                 |
    a|               .                  . VII |
    |  VIII                   .              |
    ---------------------------------------+
                     a                    bThe total area equals (a+b)^2 again and equals the sum of the smaller areas:
    (a+b)^2 == V+VI+VII+VIII+IX. Let area IX be c^2 for whatever c may be.
    V+VII == VI+VIII == a*b, so a^2+b^2+2*ab= c^2+2*a*b; IOW a^2+b^2 == c^2
    Given this fundamental result, the others can easily be derived from this one,
    or did I answer a question you didn't ask?
    kind regards,
    Jos

  • I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    I need help to find and open a job app that I exported, was able to fill out and sign and saved and now can't open it? What did I do wrong?

    What file format did you export it to?

  • Need help to open audios attached in a PDF file

    Hello
    I just need help. I have ordered a reviewer online that has audios and texts in a pdf file. I was told to download the latest adobe reader on my computer. I have done the same thing on my ipad mini. I am not so technical with regards to these things. Therefore I need help. I can access the audios on my computer but not on my ipad.
    I want to listen to audios with scripts or texts on them so i can listen to them when i am on the go. I was also informed that these files should work in any device. How come the audios doesnt work on my ipad.
    Please help me on what to do.
    Thanks

    Audio and video are not currently support on Adobe Reader. :-<
    You need to buy a PDF reader that supports them. My suggestion is PDF Expert from Readdle ($US 9.99)

  • Need help to open and look for file by name

    Hi,
            Im needing help to open a folder and look for a file (.txt) on this directory by his name ... The user ll type the partial name of file , and i need look for this file on the folder , and delete it ....
    How can i look for the file by his name ?
    Thx =)

    Hi ,
        Sry ,, let me explain again ... I ll set the name of the files in the follow order ... Name_Serial_date_chanel.sxc ..
    The user ll type the serial that he wants delete ...
    I already figured out what i need guys .. thx for the help ^^
    I used List Directory on advanced IO , to list all .. the Name is the same for all ... then i used Name_ concateneted with Serial(typed)* .. this command serial* ll list all serials equal the typed , in my case , ll exist only one , cuz its a count this serial .Then i pass the path to the delete , and its done !
    Thx ^^

  • I need help, my ipod touch is not recognized by windows as a harddisk

    i need help, my ipod touch is not recognized by windows like a memory card or a harddisk.
    i would like to transfer the files from pc to my ipod touch without useing itunes.
    as i see theres some people here that theires ipod touch are recongnzed as a digitl camra, mine is reconzied as nothing, some help plz.
    Message was edited by: B0Om

    B0Om wrote:
    ok but i still dont understed, only my itnes recongnize my ipod, when i go to " my cumputer, it dosent show up there, not even as a digital camra
    Your Touch is working correctly. Currently, without unsupported third party hacks, the Touch has NO disc mode. It will only show up in iTunes.
    how do i put programes and games in my ipod touch
    Right now, you don't. The SDK is scheduled to be released in Feburary. Then developers will be able to write programs that will be loadable.

  • Weird error message need help..

    SO.. i havent updated my itunes in a while because i keep getting this weird message.. it comes up when im almost done installing the newest/newer versions of itunes. it says
    "the feature you are trying to use is on a network resource that is unavailable" "click ok to try again or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"
    now when ever i choose a file from the browse box it replies with this message "the file 'xxx' is not a valid installation package for the product iTunes. try to find the installation package iTunes.msi in a folder from which you can install iTunes."
    no idea need help thanks
    ~~~lake
    Message was edited by: DarkxFlamexCaster
    Message was edited by: DarkxFlamexCaster

    +it comes up when im almost done installing the newest/newer versions of itunes. it says+ +"the feature you are trying to use is on a network resource that is unavailable" "click ok to try again or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below"+
    With that one, let's try the following procedure.
    First, head into your Add/Remove programs and uninstall your QuickTime. If it goes, good. If it doesn't, we'll just attend to it when we attend to iTunes.
    Next, download and install the Windows Installer CleanUp utility:
    Description of the Windows Installer CleanUp Utility
    Now launch Windows Installer CleanUp ("Start > All Programs > Windows Install Clean Up"), find any iTunes and/or QuickTime entries in the list of programs in CleanUp, select those entries, and click “remove”.
    Next, we'll manually remove any leftover iTunes or QuickTime program files:
    (1) Open Local Disk (C:) in Computer or whichever disk programs are installed on.
    (2) Open the Program Files folder.
    (3) Right-click the iTunes folder and select Delete and choose Yes when asked to confirm the deletion.
    (4) Right-click the QuickTime folder and select Delete and choose Yes when asked to confirm the deletion. (Note: This folder may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
    (5) Delete the QuickTime and QuicktimeVR files located in the C:\Windows\system32\ folder. Click Continue if Windows needs confirmation or permission to continue. (Note: These files may have already been deleted if QuickTime was successfully removed using Add/Remove Programs earlier.)
    (6) Right-click on the Recycle Bin and on the shortcut menu, click Empty Recycle Bin.
    (7) Restart your computer.
    Now try another iTunes install. Does it go through properly now?

  • I got new hard driver for my MacBook I don't have the cd but I do have flash drive that has the software I need help because when I turn on my laptop it shows me a file with question mark how can I install the software from the flash driver?

    I got new hard driver for my MacBook I don't have the cd but I do have flash drive that has the software I need help because when I turn on my laptop it shows me a file with question mark how can I install the software from the flash driver?

    Hold down the Option key while you boot your Mac. Then, it should show you a selection of devices. Click your flash drive and it will boot from that.

  • Need help adobe bridge cc output module

    I need help. I have an assignment I'm held up on completing because the adobe cc bridge does not have the output modue I need. I followed the adobe instructions page to the letter. I copied and pasted the output module folder to the adobe bridge cc extensions folder in programs/commonfiles/adobe. The only thing is the instructions then say to paste the workspace file into the workspace folder located below the bridge extensions folder. I don't have a workspaces folder there or anywhere. I even tried must making one and adding the file to it, but no go. can someone PLEASE help me with this?    I have an assignment due like now that requires the use of the output modue.thanks!

    oh,my system is windows 8.1. sorry, lol.

Maybe you are looking for

  • Reminders on Icloud

    Hi all, i got an issue with the synch on icloud of my reminders: When i type one of them, i can't see in all my devices but just where i've written . I've already tried to "exit" on my account icloud, but issue persist.

  • Pixma MG5220 Windows 7 can't find wi-fi connection

    I have used a Pixma MG5220 printer with my Windows 7 machine for a long time.  Recently, however, I needed to re-format and re-initialize the PC.  I have the MG5220 as a wi-fi printer on the home network.  I see it as a network device in Windows Expl

  • Reorganized Project Window (can not restore my folder structure)

    Using CC2014 on an iMac running Yosemite. Haven't updated anything so not sure what the issue is but here goes. I typically organize my project files, then all of a sudden AE changed my folder structure. In the Project window it created a Solids, Nul

  • Can Google read the content inside spry tabbed panels?

    I have heard that Google 'might' not be able to read text inside AJAX. Does anyone here know forsure whether they can? I have content that I do not want Google to see (it is duplicate copies of other content that I have elsewhere on my site and I do

  • ODI Data Quality - Relationship Linker Process

    Hi All, I have been trying to use the relationship linker process in the ODI data quality interface with limited success. My Problem: The process tab in the relationship linker asks for two inputs. 1) Attribute containing record type & 2) Attribute C