tutorial « Development « JPA Q&A





1. JPA tutorials    stackoverflow.com

Let's say that I'm new to JPA, is there a way to get my skills up to speed? Are there any good tutorials?

2. Hibernate tutorials    stackoverflow.com

Let's say that I'm new to Hibernate, is there a way to get my skills up to speed? Are there any good tutorials?

3. What are good video tutorials for Hibernate?    stackoverflow.com

I am new to Hibernate and what are some good video tutorials/online tutorials to guide me ? Thanks.

4. Looking for *working* Hibernate examples    stackoverflow.com

I have been scouring the intertubes for working somewhat recent Hibernate examples. I understand it well on a conceptual level, but I'm having trouble throwing together a "hello world" program, ...

5. Hibernate Tutorial    coderanch.com

6. hibernate tutorial    coderanch.com

7. Good Hibernate Tutorial    coderanch.com

8. hibernate tutorial    coderanch.com

9. WSAD + Hibernate tutorial    coderanch.com





10. Hibernate Tutorials    coderanch.com

11. Hibernate tutorial    coderanch.com

12. JPA Tutorial    coderanch.com

13. Hibernate tutorial    coderanch.com

14. Hibernate Tutorial problem    coderanch.com

I'm working on the tutorial in the first chapter of the Hibernate documentation, and having a problem with it. I've created all the files listed along with their content. The problem I have, is that when I run it, I get a Table not found error because it's not being created. I have the create entry in my hibernate.cfg.xml file, ...

15. Hibernate tutorials    coderanch.com

16. Tutorial JPA with OpenJPA    coderanch.com





17. Need some input/tutorial on Hibernate Internals    coderanch.com

Hi , I am learning hibernate . I need a good tutorial on Hibernate Internals,not the basics(that can I get from any book ) .For example hibernate uses saveOrUpdate() ,but how internally it decides whether to save or update ? when we invoke merge() what happens internally ? The explanation for this sort of things I have not seen in any ...

18. Hibernate Tutorial Chapter 1 Problem    coderanch.com

Hi to all, Well i am reading hibernate 3.2.2 tutorial. Going through these web pages i came to know that we should use session as "Thread Bound Programming" that means one session per thread. But when i was going through 1.3.3(Working the association), there is concept of detached objects and hence session opened and closed twice as per requirement. I want ...

21. Best tutorial for hibernate    coderanch.com

22. Hibernate tutorial project    coderanch.com

23. Hibernate Tutorial    forum.hibernate.org

I'm new to hibernate and am trying to learn it. The tutorial at http://docs.jboss.org/hibernate/core/3. ... orial.html I try to start the hsqldb server with the mvn exec:java -Dexec.mainClass="org.hsqldb.Server" -Dexec.args="-database.0 file:target/data/tutorial" command and I get the following error: [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.hibernate.tutorials:hibernate-tutorial ...

24. Hibernate Tutorial Error Two    forum.hibernate.org

I'm using the maven script that is specified in the tutorial at http://docs.jboss.org/hibernate/core/3. ... rstapp-mvn and I get the following error [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error building POM (may not be this project's POM). Project ID: org.hibernate.tutorials:hibernate-tutorial POM Location: E:\hibernate sandbox\src\pom.xml Validation Messages: [0] 'dependencies.dependency.version' is missing for org.hibernate:hibernat e-core [1] 'dependencies.dependency.version' is ...

25. Tutorial app gives errors.    forum.hibernate.org

Hi. I'm a hibernate beginner so sorry for tedious questions. I tried web tutorial from hibernate reference (1.1. Part 1 -...) and it gave me some error logging. This is what it complains about, even though expected database entries were made (when calling main() method from EventManager): Code: 1155 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table EVENTS (EVENT_ID bigint generated by ...

26. Wrong information in Chapter 1. Tutorial    forum.hibernate.org

27. Tutorial that works?    forum.hibernate.org

Is there a tutorial that works? There seems to be new versions and old tutorial in the current distro. I can't seem to make it work. First, the home page says, "Download Hibernate 3.2 and extract the archive." But, I go to the download page and I find. hibernate-distribution-3.3.2.GA-dist.tar.gz So, not too much of a problem. I download it, open the ...

28. [Newbie] trying to do the hibernate tutorial    forum.hibernate.org

[ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An exception occured while executing the Java class. null socket creation error [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An exception occured while executing the Java class. null at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:512) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:482) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) ...

29. tutorial jacked up!    forum.hibernate.org

It appears the current hibernate tutorial fails the Missouri test. Those who are curious, will be turned off because of beginning tutorial that just doesn't seem to work. At least, I haven't gotten it to work. I am sure many have put much work into hibernate, but I am having a tough time just getting "Hello World" working! In the guide ...

30. Newbie tutorial for Hibernate    forum.hibernate.org

http://docs.google.com/View?id=dfx39v2s_135fw3x69g6 Newbie tutorial for Hibernate using MySQL and Java. I put together a tutorial for my own personal use while setting up Hibernate for the first time. I am a complete idiot, so anyone should be able to use this. I found pretty much all of the tutorials and books out there lack the kind of extremely simplified, step by step ...

31. Why can't I finish the tutorial from the reference ?    forum.hibernate.org

Hello everyone ,I am new to this community ,and new to hibernate. A problem have troubled me two weeks ,When I want to start my learning hibernate via the reference ,I can't accomplish the tutorial in the chapter 1, I have done what the content describes step by step ,however I can't get the result which appear in the article . ...

32. Tutorial Help...    forum.hibernate.org

Newbie Joined: Tue May 18, 2010 5:28 pm Posts: 8 I'm currently working on a hibernate/Java/hyper sql Database application, and I am in need of assistance. Here is the tutorial I'm working through. http://today.java.net/pub/a/today/2006/05/23/ejb3-persistence-api-for-client-side-developer.html I have all the required jars, but I get the following results and then an exception. I'm running it in NetBeans: Code: run: May 18, 2010 4:24:22 ...

33. Tutorial Dependancy problems    forum.hibernate.org

I am new at Hibernate and was starting the tutorial. I worked my way through it but when I ran it I got the following problem: Code: 0 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GA 0 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found 15 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist 15 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp ...

34. "Tutorial" fails to impart useful knowledge    forum.hibernate.org

Newbie Joined: Wed Jan 12, 2011 1:00 pm Posts: 1 Good morning, I am trying to follow the hibernate "tutorial" ( http://docs.jboss.org/hibernate/core/3. ... l-firstapp ), but running into many problems due to the fact that many steps are left out, or steps are just plain wrong. For instance, in the first paragraph alone, there is an assertion that "The tutorial is ...

35. Problem with hibernate tutorial    forum.hibernate.org

Newbie Joined: Tue Feb 01, 2011 5:10 am Posts: 1 Hello I'am learning Hibernate and working with Tutorial. I'am stoped on "Part 2 mapping associations" My all java file compilled properly: Person.java, Event.java, EvenManager.java, HibernateUtil.java. I have two hibernate configurationfile Hibernate.cfg.xml, and Event.hbm.xml. At this point I want save to Database only one entity Event but during running example I receiving ...

36. Newbie having trouble with the tutorial    forum.hibernate.org

Hi, I have heard a lot of good things about the hibernate frame work, so i decided to try it. So i have downloaded the tutorial files from here ( http://docs.jboss.org/hibernate/core/3. ... html#d0e94 ) unzipped it and built the executed the mvn compile command. But i am getting build errors (see below). I have tried to purge the subprojects but it ...

38. Trouble running tutorial    forum.hibernate.org

Hi, I'm just starting with Hibernate. I'm trying to run the tutorial at http://www.hibernate.org/hib_docs/onlin ... tion/html/ This is on RH Linux, java 1.4.0. I'm trying to generate the mapping code from the supplied database, using ant bottomup.middlegen I get this error message: BUILD FAILED /home/mike/hibernate/build.xml:130: middlegen.MiddlegenException: Couldn't connect to database: The database is already in use by another process: org.hsqldb.NIOLockFile@b07e2b6[file =/home/mike/hibernate/database/toolset.db.lck, ...

39. New Tutorial - Feedback appreciated    forum.hibernate.org

Hi, thanks for your suggestions. I line-breaked the XML examples on purpose because such long lines in

 blocks will cause ugly horizontal scrolling for the page. But I think in this case I should probably change it, as there were some forum questions caused by this allready I think. Well, people should use a propper screen resolution anyways :) I ...

40. Tutorial/Sample app Hosting    forum.hibernate.org

I am sure i can find a place to put it online, if you don't need personal shell access. Send me an email if you want. It should also not be that difficult to find some free webspace, just don't put it on geocities please :) I can also just put the big files (zips,etc.) on my server and you can ...

41. Error when trying tutorial java.lang.AbstractMethodError    forum.hibernate.org

Hi all, I was trying to execute my first persistance example. Which I got from here(The cat class and all) http://www.hibernate.org/hib_docs/refer ... rt-mapping I using sequence for id generation. I used diffrent postgress jdbc driver class for version 7.3 and 7.4 both resulted in error given below. I am giving the details below. Can any one help. Hibernate Version= 2.1.3 Database=Postgress ...

42. Tutorial problem (Chapter 2)    forum.hibernate.org

I'm having a problem with the tutorial in chapter 2 of the reference documentation. I've followed the tutorial step by step and it seems to do what it is supposed to until I get to the end of section 2.2.6 where it tells me to remove the hbm2ddl.auto option and run the store action a few times. When I do this ...

43. web-based flash tutorial    forum.hibernate.org

Hi group. In the training section of the hibernate website, there is a mention of a free web-based flash tutorial. I quote: "The web-based tutorial is currently only available to Hibernate Advanced training attendees." Are there any plans to make this tutorial available to general public for free, and not only to those who sign up for the advanced training ? ...

44. Tutorials    forum.hibernate.org

45. Help with Hibernate Tutorial    forum.hibernate.org

46. Gone crazy with the first tutorial application    forum.hibernate.org

Hi all, I am gone crazy trying to run the first tutorial application in chp 2 of the documenation. For some reason ant tries to use GIJ (java bytecode interpreter) to run the application and this is what I get when I run it: $ant run -Daction=store Buildfile: build.xml clean: [delete] Deleting directory /a/data/kashi/bin [mkdir] Created dir: /a/data/kashi/bin copy-resources: [copy] Copying ...

47. Hibernate Tutorial    forum.hibernate.org

48. Tutorial Frage    forum.hibernate.org

49. good tutorials    forum.hibernate.org

Hi, I am experimenting with the mappings, but the documentation provided doesn't answer all my questions. Does anybody know a good tutorial on hibernate mappings ( one where they start of with a ERM - model and translate this into a mapping ). Or even better, a tool where i can just draw my ERM diagram and have the mappings generated ...

50. Getting Error in hibernate Tutorial.....    forum.hibernate.org

I am trying simple database application using hibernate. I ve successfully created & compiled all files & DESCRIPTORS FOR IT. But during the client application it gives me error like- ========= Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/dom4j /DocumentException Exception in thread "main" java.lang.ExceptionInInitializerError at de.gloegl.road2hibernate.HibernateUtil.(HibernateUtil.java:18 ) at de.gloegl.road2hibernate.EventManager.main(EventManager.java:11) Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException at de.gloegl.road2hibernate.HibernateUtil.(HibernateUtil.java:14) =================== Please help me to solve this...... Thanx ...

51. Hibernate3 tutorial    forum.hibernate.org

private void addPersonToEvent(Long personId, Long eventId) { Session session = HibernateUtil.currentSession(); Transaction tx = session.beginTransaction(); Person aPerson = (Person) session.load(Person.class, personId); Event anEvent = (Event) session.load(Event.class, eventId); ...

52. Newbie - tutorial problem.    forum.hibernate.org

Hi all, I'm new to hibernate and have been working through the tutorial and have encountered a problem which i fear is something really basic. I am currently at the loading & storing objects section. When i use ant (ant run -Daction=store) on my app it seems to build ok but there are warnings. Also i do not get any indication ...

53. Tutorial error Chapter 1 page 14    forum.hibernate.org

54. Problems with the Tutorial    forum.hibernate.org

Hibernate version: version 3.1 Full stack trace of any exception that occurs: Code: Jan 29, 2006 2:49:10 AM org.hibernate.cfg.Environment INFO: Hibernate 3.1 Jan 29, 2006 2:49:10 AM org.hibernate.cfg.Environment INFO: loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.postgresql.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider, hibernate.max_fetch_depth=1, hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect, hibernate.jdbc.use_streams_for_binary=true, hibernate.format_sql=true, hibernate.query.substitutions=yes 'Y', no 'N', hibernate.proxool.pool_alias=pool1, hibernate.connection.username=pg, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:postgresql:template1, hibernate.connection.password=****, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.pool_size=1} Jan 29, 2006 2:49:10 AM org.hibernate.cfg.Environment ...

55. newbie:hibernate tutorial error    forum.hibernate.org

hibernate 3.0, mac os x, jdk1.4 hi, i've problem while follow hibernate tutorial from hibernate website. Can someone show me what the problem..the error mac:/usr/local/src/hibernate-3.0/hibernateTutorial root# ant Buildfile: build.xml clean: [delete] Deleting directory /usr/local/src/hibernate-3.0/hibernateTutorial/bin [mkdir] Created dir: /usr/local/src/hibernate-3.0/hibernateTutorial/bin copy-resources: [copy] Copying 3 files to /usr/local/src/hibernate-3.0/hibernateTutorial/bin [copy] Copied 2 empty directories to 1 empty directory under /usr/local/src/hibernate-3.0/hibernateTutorial/bin compile: [javac] Compiling 3 source ...

56. Notes on the tutorials    forum.hibernate.org

57. Problems with hibernate tutorial    forum.hibernate.org

hi... i'm trying to follow the hibernate tutorial, making the Event's exercise. However, i can't run "ant run -Daction=store" because i get this error: "Cannot find the declaration of element 'hibernate-mapping'" "Couldnt read mappings from resource events/Event.hbm.xml" this is the content of src/events/Event.hbm.xml : ...

58. Newbie needs help with tutorial    forum.hibernate.org

I'm trying the tutorial at: http://www.hibernate.org/hib_docs/v3/re ... orial.html I get to step 1.2.5, Startup and Helpers and get an error. Error text is below. I am not sure if I've done something wrong (major newbie here) or if there is something missing in the tutorial. Hibernate version: 3.1.3 Full stack trace of any exception that occurs: C:\downloads\Hibernate\TestDev>ant Buildfile: build.xml clean: [delete] ...

59. newbie notes: tutorial - first hibernate application    forum.hibernate.org

Newbie Developer Notes - The first Hibernate Application start at http://www.hibernate.org/152.html 1. download, extract install file 2. place mySQL jdbc driver in hibernate/lib (mysql-connector-java-3.1.13-bin.jar) 3. copy hibernate3.jar from hibernate to hibernate/lib 4. copy junit-3.8.1.jar from hibernate/lib to ant/lib Test install: try to build test app per install instructions Modify etc/hibernate.properties hibernate.properties (MySQL properties for testing install): hibernate.dialect org.hibernate.dialect.MySQLDialect #hibernate.dialect org.hibernate.dialect.MySQLInnoDBDialect hibernate.connection.driver_class ...

60. Error with tutorial    forum.hibernate.org

[java] Initial SessionFactory creation failed.java.lang.NoClassDefFoundError: org/dom4j/DocumentException [java] Exception in thread "main" java.lang.ExceptionInInitializerError [java] at util.HibernateUtil.(Unknown Source) [java] at events.EventManager.createAndStoreEvent(Unknown Source) [java] at events.EventManager.main(Unknown Source) [java] Caused by: java.lang.NoClassDefFoundError: org/dom4j/DocumentException [java] ... ...

61. NPE in the eg example and tutorial    forum.hibernate.org

Author Message cybernate Post subject: NPE in the eg example and tutorial Posted: Fri Sep 29, 2006 7:39 pm Newbie Joined: Fri Sep 29, 2006 6:35 pm Posts: 6 Hi, I'm brand new to hibernate and thought I'd jump in with the tutorial and the "eg" example bundled with the hibernate download. I worked my way through much of ...

62. Problem compiling tutorial application    forum.hibernate.org

Hi, I'm trying to compile the application provided in Hibernate tutorial. I encounter following error: compile: [javac] Compiling 5 source files to C:\Sharad\Code\Hibernate\bin [javac] C:\Sharad\Code\Hibernate\src\util\HibernateUtil.java:8: cannot acces s org.hibernate.SessionFactory [javac] bad class file: C:\Sharad\Code\Hibernate\lib\hibernate3.jar(org/hibe rnate/SessionFactory.class) [javac] class file has wrong version 48.0, should be 47.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] ...

63. Question about hibernate tutorial example    forum.hibernate.org

Newbie Joined: Wed Feb 14, 2007 1:46 pm Posts: 3 I'm a newbie with hibernat and i'm beginning with hibernate tutorial example. I am able to compile, but when I try to execute it, it says : Error parsing XML: ... Here's all my classes and my hbm and cfg xml. Thanks Code Classe Event package events; import java.util.*; public class ...

64. Trouble running tutorial example    forum.hibernate.org

Hibernate version:3.2.0.cr3, checked out and built from svn this morning Hi folks. I'm having a classpath problem running the example. I've tried every trick I know to get it work, and the debug output from ant seems to indicate all is well... Working with the example tutorial, when I try to run it, I get: Code: [tunaranch:~/Documents/eclipse_sandbox/hibernate-tute] haikal% ant run -Daction=store ...

65. problem in runnig tutorial    forum.hibernate.org

Hi, I just downloaded Hibernate 3.2 and trying the tutorial. I tried to use MS SQL database with weblogic driver. The build.xml file is the same. I put the weblogic.jar under /lib. When I run "ant run -Daction=store" I got exception: [java] 14:07:04,594 FATAL DriverManagerConnectionProvider:65 - JDBC Driver class not found: weblogic.jdbc.sqlserver.SQLServerDriver [java] java.lang.ClassNotFoundException: weblogic.jdbc.sqlserver.SQLServerDriver [java] at java.net.URLClassLoader$1.run(URLClassLoader.java:200) [java] at ...

66. tutorial chapter 1    forum.hibernate.org

no there isn't, and that was not the error, next line: something with java.lang.reflect.UndeclaredThrowableException since most hibernate jars are unfamiliar : just include all of them. the tutorial specifies a few, but not every single one that's required HF org.hsqldb.jdbcDriver jdbc:hsqldb:hsql://localhost sa