New Hibernate Tutorial

There's a new Hibernate tutorial available.
http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/hibernate.html
This tutorial shows you how to build a web application in the Java Studio Creator IDE that uses Hibernate libraries and plain old Java objects (POJOs). This tutorial is for developers who have a solid working knowledge of Hibernate. To learn more about Hibernate, see the Hibernate reference documentation.
In this tutorial, you wrap a Person POJO (where Person is a mapping of the Person database table) with an array of com.sun.rave.web.ui.model.Option objects and bind a DropDown List component to the array. You then extend the ObjectListDataProvider class to build a TripDataProvider wrapper for the Trips POJO, and bind the Table component to an instance of the TripDataProvider class.
Note: since Hibernate is a third party product, this requires a separate download of the Hibernate libraries. This tutorial mentions where
and how to use the Hibernate libraries.

Hi there
I'm building the project but I don't find any
creator-install-dir/SunAppServer8/derby/lib/derbyclient.jar
I have no creator-install-dir/SunAppServer8/derby indeed.
I'm using Java Studio Creator 2 Update 1 (Build 060915)
Nicola Grippaldi
PS: I've updated from 2004Q2 Update 8
Message was edited by:
nick091

Similar Messages

  • How to download Hibernate Tutorial Workshop to PC with no internet connect

    Hi,
    How to download Hibernate Tutorial Workshop to PC with no internet connection?
    Is there any zip file on BEA site where I can download and import the hibernate tutorial to the Workshop on the PC with no internet connection?

    Ram,
    Could you add this to the Wiki page? Add it as an Wiki entry instead of
    the formal support doc?
    http://dev2dev.bea.com/wiki/bin/view/ProdTech/WorkshopFAQ
    br
    Ram Venkataswamy wrote:
    Yes, you can download the tutorial on a system with internet connection and then use that war file on the system w/o connection.
    On a system with internet connection, download https://dev2devclub.bea.com/downloads/examples/hibernate-tutorial.war
    copy the war file to the actual systemEx: ....\workspace\metadata\.plugins\com.m7.nitrox\.examples
    Launch Workshop, New > Example > Workshop Hibernate Example > continue with creating the project (local copy would be used instead of downloading from internet).

  • Compile Failed(Hibernate Tutorial)

    Hi,
    I'm trying steps of hibernate Tutorial from hibernate.org site.
    when i use ant war on command line I face some problem.
    C:\hibernateTutorial>ant war
    Buildfile: build.xml
    clean:
       [delete] Deleting directory C:\hibernateTutorial\bin
        [mkdir] Created dir: C:\hibernateTutorial\bin
    copy-resources:
         [copy] Warning: events\Event.hbm.xml modified in the future.
         [copy] Warning: events\Person.hbm.xml modified in the future.
         [copy] Warning: log4j.properties modified in the future.
         [copy] Warning:  modified in the future.
         [copy] Warning: util modified in the future.
         [copy] Copying 4 files to C:\hibernateTutorial\bin
         [copy] Copied 2 empty directories to 1 empty directory under C:\hibernateTu
    torial\bin
    compile:
        [javac] Warning: events\Event.hbm.xml modified in the future.
        [javac] Warning: events\Event.java modified in the future.
        [javac] Warning: events\EventManager.java modified in the future.
        [javac] Warning: events\Person.hbm.xml modified in the future.
        [javac] Warning: log4j.properties modified in the future.
        [javac] Warning: util\HibernateUtil.java modified in the future.
        [javac] Compiling 5 source files to C:\hibernateTutorial\bin
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:39: illegal
    start of expression
        [javac] private void printEventForm(PrintWriter out)
        [javac] ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:51: ';' exp
    ected
        [javac] List result = HibernateUtil.getSessionFactory().getCurrentSession().
    createCriteria(Event.class).list();
        [javac]
                         ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:51: <identi
    fier> expected
        [javac] List result = HibernateUtil.getSessionFactory().getCurrentSession().
    createCriteria(Event.class).list();
        [javac]
                              ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:51: '{' exp
    ected
        [javac] List result = HibernateUtil.getSessionFactory().getCurrentSession().
    createCriteria(Event.class).list();
        [javac]
                                      ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:52: illegal
    start of type
        [javac] if(result.size()>0)
        [javac] ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:70: <identi
    fier> expected
        [javac] }
        [javac] ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:71: illegal
    start of expression
        [javac] protected void createAndStoreEvent(String title,Date theDate)
        [javac] ^
        [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:78: ';' exp
    ected
        [javac] }
        [javac] ^
        [javac] 8 errors
    BUILD FAILED
    C:\hibernateTutorial\build.xml:21: Compile failed; see the compiler error output
    for details.
    Total time: 2 seconds
    C:\hibernateTutorial>EventManagerServlet code is:
    package events;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import util.HibernateUtil;
    import java.util.*;
    public class EventManagerServlet extends HttpServlet
    protected void doGet(HttpServletRequest request,HttpServletResponse response)
    throws ServletException, IOException
    SimpleDateFormat dateFormatter = new SimpleDateFormat("dd.MM.yyyy");
    try
    HibernateUtil.getSessionFactory().getCurrentSession().beginTransaction();  
    PrintWriter out = response.getWriter();
    out.println("<html><head><title>Event Manager</title></head><body>");
    if ( "store".equals(request.getParameter("action")))
    String eventTitle = request.getParameter("eventTitle");
    String eventDate = request.getParameter("eventDate");
    if ( "".equals(eventTitle) || "".equals(eventDate) )
    out.println("<b><i>Please enter event title and date.</i></b>");
    else
    createAndStoreEvent(eventTitle, dateFormatter.parse(eventDate));
    out.println("<b><i>Added event.</i></b>");
    printEventForm(out);
    listEvents(out, dateFormatter);
    out.println("</body></html>");
    out.flush();
    out.close();       
    HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().commit();
    private void printEventForm(PrintWriter out)
    out.println("<h2>Add new event:</h2>");
    out.println("<form>");
    out.println("Title: <input name='eventTitle' length='50'/><br/>");
    out.println("Date (e.g. 24.12.2009): <input name='eventDate' length='10'/><br/>");
    out.println("<input type='submit' name='action' value='store'/>");
    out.println("</form>");
    private void listEvents(PrintWriter out,SimpleDateFormat dateFormatter)
    List result=HibernateUtil.getSessionFactory().getCurrentSession().createCriteria(Event.class).list();
    if(result.size()>0)
    out.println("<h2>Events in database:</h2>");
    out.println("<table border='1'>");
    out.println("<tr>");
    out.println("<th>Event title</th>");
    out.println("<th>Event date</th>");
    out.println("</tr>");
    for(Iterator it = result.iterator();it.hasNext();)
    Event event = (Event) it.next();
    out.println("<tr>");
    out.println("<td>" + event.getTitle() + "</td>");
    out.println("<td>"+dateFormatter.format(event.getDate()) + "</td>");
    out.println("</tr>");
    out.println("</table>");
    protected void createAndStoreEvent(String title,Date theDate)
    Event theEvent = new Event();
    theEvent.setTitle(title);
    theEvent.setDate(theDate);
    HibernateUtil.getSessionFactory().getCurrentSession().save(theEvent);
    catch (Exception ex)
    HibernateUtil.getSessionFactory().getCurrentSession().getTransaction().rollback();
    throw new ServletException(ex);
    }Kindly suggest anyone.
    Great Regards
    -S.Singh
    Edited by: shobhit_onprob on Apr 22, 2008 11:46 AM

    I've just problem for importing package for recover this problem below.
    [javac] C:\hibernateTutorial\src\events\EventManagerServlet.java:15: cannot
    find symbol
        [javac] symbol  : class SimpleDateFormat
        [javac] location: class events.EventManagerServlet
        [javac] SimpleDateFormat dateFormatter = new SimpleDateFormat("dd.MM.yyyy");pl. suggest which package i've to import.
    only java.util.* doesn't work.
    -S.Singh

  • Jeff + Michael 'New Video Tutorial' ?????

    Did I read a while back that Jeff and Michael had (were) producing a new video tutorial concerning LR called something along the lines of 'From Shoot to Print'? Have I got this all wrong, and if not, anyone else heard about it and when/if we can expect it? Perhaps Jeff will be so kind as to jump in here. :-)

    Ian
    Thanks for that. I raised it here due to the many problems people appear to be having with their prints - especially with Epsom printers. Whether or not this is due to incorrect profiles, a fault with several Epsom printers, failing to set up LR correctly or a combination of each is anyones guess, but as Jeff appears to be using Epsom printers it would be nice to know whether the tutorial video will go into detail (visually) of how he sets the entire thing up.
    It might just give those having current printing problems something to look forward to, and others (like me) who are considering upgrading their current printers a better reason not to shun Epsoms. :-)

  • Heads up! A new video tutorial

    The inimitable Izzy has just issued a new video tutorial on the Travel Matte Alpha. He demonstrates its utility to place video within text, but obviously it has other uses.
    The tutorial is free.
    Under the agreement terms of this Forum, I cannot provide a link, but Izzy Video is not hard to find.
    I do not stand to benefit from this post.
    Have fun.
    Allosaurus

    Allosaurus,
    Someone must have looked at your post and clicked the "Report this post" button, perhaps accidentally. Or maybe they knew that Izzy Video is a membership site that charges a membership fee, but not knowing that Izzy also provides +high quality, free tutorials!+ Either way, I wouldn't worry about or be offended about being contacted by Apple on this.
    Your participation is great, you have no financial interest in Izzy Video that I know of, and if you provided a link to Izzy Video's website you are certainly not the first to have done so! I think the email was unwarranted.

  • New Spanish Tutorial - Boris Title 3D

    howdy,
    I've added a new Spanish FCP tutorial here .
    love & peace,
    victor

    saludos, daniel
    thanks
    quote: "yo tengo uno en español tipo introduccion al interface, nada "big deal""
    ¡Gracias por compartirlo!
    thanks for sharing it!
    amor y paz,
    victor

  • New Labview Tutorial Series

    New users may find our new tutorial series handy. Still under
    construction and more coming soon, but your feedback is appreciated
    http://www.mech.uwa.edu.au/jpt/tutorial/index.html

    Very thorough, Thank you very much!

  • V3 new features tutorial

    Does anyone know if one is available?
    I've registered anew workspace, but without knowing what I can do extra, I might as well still be using v2.2.
    Thanks.

    Thanks for the link, I've already had a look at that, but it is a list of new features, I was hoping there was a tutorial that shows how to get the new features.
    Ta.

  • RFC: Introduce new 'Article/Tutorial (Comment) Threads' in the Web Dynpro Forum

    Some time ago I've suggested on SCN Support is both forum moderator and most active articles wrtiter
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net
    Message was edited by: Bertram Ganz
    This thread was branched from forum thread: How to print the data of a Model node.

    Hi Valery,
    thanks for this great idea. Indeed, there is no channel set up to communicate feedback/suggestions/questions to Web Dynpro tutorials or articles in a standardized way.
    WebLogs can be commented on the WebLog page itself and they are announced in a special ;\ New Web Dynpro Weblogs which can be opened via the <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d">Web Dynpro Feature2Sample Matrix</a>. Actually the section 'Further Information' lists all related articles, WebLogs etc. These links are regularly updated so that the Sample Description Pages helps to keep all links to valuable information in a central place.
    The 'Sample Description Page' should additionally comprise a section <b>'Discussion'</b> with a link to the above 'Article Comment Thread' in the Web Dynpro forum. The reader downloads the material from the sample description page and also finds a link to the related 'Article Comment Thread' there.
    For all new articles (which are combined with a related 'Article Comment Thread') the <i>Further Information</i> links could point to the 'Article Comment Thread' (which then itself links to the article) but not directly to the article resource. The reader can then also have look at the existing comments to the related resource. As an alternative the article PDF itself should have a permanent link to the 'Article Comment Thread' in the Web Dynpro Forum.
    Please post your comments on this idea.
    Regards, Bertram

  • New particles tutorial

    Hey All,
    Nipsey pointed out a method for a nice type treatment using particles, so here's a quick tutorial.
    Please let me know if you find any typos or mistakes. Thanks!

    Specialcase, this was an excellent tutorial and easy to follow. I really appreciated you including some of the options at the end and encouraging "experimentation."
    A lot of our work is for the web and I wanted to see how the tutorial's outcome would translate into a 320X240 window...and it does nicely. The initial setup was created using NTSC-DV. Exported to QT. We use Cleaner to encode for the web so I pulled the clip into Cleaner, set for 320X240 using Sorenson 3...it worked perfectly and looks great. With a little tweaking I can reduce the size and set in the lower third for a 320X240 and it should show up nicely with the effect.

  • Final Cut Express 2 - new user tutorial

    Greetings all! I have had Final Cut Express on my computer for over 2 years and have never learned to use it - sad, but true. I am ready to invest in some kind of tutorial and was seeking your ideas for the best one. I don't live near an Apple store, so I can't take advantage of the things they offer in-store. I would prefer a video tutorial, but if someone thinks there is a book that is better I would consider it. Thanks for any input you can provide.

    You say you have FCE 2 so probably the best, easily followed book for you is this one:-
    http://www.fcpbook.com/FCE2EditingWorkshop.html
    Everything is explained clearly and should you have any further questions, the author is here on the forum to answer them.
    Ian.

  • Turn off new feature/tutorial/etc panel?

    how does one turn off this panel at launch? i cannot seem to find where to do this.

    Hi Tranac,
    Sorry for my first response. My apologies. I thought you were asking for the "Transform Panel" which gets invoked on creating rectangle.
    If you have the cloud subscription then:
    For the Welcome screen you can select the "New Feature" tab and scroll to the bottom of this tab.
    Then select the "Don't Show Welcome Screen Again" check box.
    If you are using it as trial then this option "Don't Show Welcome Screen Again" is not displayed.
    With Best Regards,
    Raghuveer

  • Otn news feed tutorial

    unable to import xmlnews.dmp into a 9i database, get the following error:
    IMP-00037: Character set marker unknown
    IMP-00000: Import terminated unsuccessfully
    did anybody had similiar problem? how can did you go around it?

    I am having the same problem while attempting to import a set .dmp files. I have verified that the character set (WE8MSWIN1252) and NCHAR character set (AL16UTF16) are the same in the export and import environments, so I am a bit perplexed.
    I don't know if it's relevant, but the export environment is at version 9.2.0.4.0 while the import environment is at version 9.2.0.1.0.

  • Third party libraries for hibernate(jar files)

    Hi I am new in hibernate.I follow some steps of hibernate tutorial from
    http://www.hibernate.org/hib_docs/v3/reference/en/html/tutorial.html
    In chapter-1 1.2.3. Hibernate configuration when i try
    java -classpath ../lib/hsqldb.jar org.hsqldb.Server
    database should be started but it,s not
    most probably reason is also include third party libraries
    I try all but still not getting success.
    In command prompt I get ::
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\shobhitsingh>cd\
    C:\>cd hibernatet*
    C:\hibernateTutorial>java -classpath ../lib/hsqldb.jar org.hsqldb.Server
    Exception in thread "main" java.lang.NoClassDefFoundError: org/hsqldb/Server
    C:\hibernateTutorial>pl guide
    Regards
    -S.Singh

    I'm sorry.I used classpath in wrong manner.I got where I'm wrong.
    Regards
    -S.Singh

  • Tutorials on Spring & Hibernate

    Hi All
    i want to know some good turorials on Spring and Hibernate from you all. i searched the net but i am unable to get any good materials on these topics especially Spring.can you please let meknow any good online tutorials on these topics as i am very new to these topics.
    i hope you will help me in this matter. waiting for a positive reply from your side.
    Regards
    Vikeng

    Google "spring tutorial" and "hibernate tutorial". You'd have to be an idiot not to find a bunch of them. Avoid the roseIndia tutorials, though, they seem to be written by people who have never actually done what they're tutoring in production, but just a digest of other tutorials

Maybe you are looking for