Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Java DB - Embedded or localhost?

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    10
    My Mood
    Confused
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Java DB - Embedded or localhost?

    OK.
    Using Netbeans 7.4, I have hand coded a GUI (SE desktop distributable application), created a single table database (Java DB using 'Embedded Driver' connection).

    As I'm at that stage of creating a (non-CRUD) database application using Hibernate 2.0, is it possible to use the Java DB/Embedded Driver with Hibernate or does it need to be a 'localhost' connection?

    Any guidance/advice would be greatly recieved - I'm a little stuck at the moment, relatively new to Java but want to learn to create this application.


  2. #2
    Member jdv's Avatar
    Join Date
    Jul 2014
    Location
    This Land
    Posts
    73
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Default Re: Java DB - Embedded or localhost?

    You can use almost any RDBMS with JPA. The details for connecting the RDBMS to the specific JPA implementation (i.e., in this case Hibernate JPA) are going to be slightly different.

    But there are examples on the web for hooking up Java DB/Derby to Hibernate JPA.

Similar Threads

  1. Netbeans EclipseLink and Embedded Java DB
    By Chaotic in forum What's Wrong With My Code?
    Replies: 1
    Last Post: August 1st, 2014, 01:28 PM
  2. Java database embedded exe file why not working......
    By Computer_system_engineer in forum What's Wrong With My Code?
    Replies: 1
    Last Post: July 7th, 2014, 02:44 PM
  3. Replies: 2
    Last Post: March 13th, 2014, 02:24 PM
  4. How do embedded java applets send and recv data?
    By MRnobody in forum Java Networking
    Replies: 1
    Last Post: March 1st, 2012, 04:36 AM
  5. [SOLVED] Java DB embedded
    By potatostar in forum JDBC & Databases
    Replies: 5
    Last Post: July 20th, 2011, 11:17 AM

Tags for this Thread