Results 1 to 6 of 6
  1. #1
    Rituparna is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    22
    Rep Power
    0

    Red face Hibernate in Netbeans 6.9.1

    hello everybody,
    I am using hibernate in netbeans for the first time, so please someone help me.
    how could i configure hibernate in the netbeans?
    If i want to use jTDS driver for SQL connection, where should i put the jTDS.jar file in netbeans??
    How to map tables of the database with the hibernate??
    where to find the DTD file??
    Netbeans has DerbyClient, what is that? is it some database connecting driver? What if i want to change it??
    I am using Netbeans 6.9.1 version and SQL2008 database. Operating system is Windows 7 Professional.
    Someone please help me, since i am new to hibernate, i am feeling like:confused:

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    618
    Rep Power
    4

    Default

    Sorry, why do you decide to use this framework?
    Skype: petrarsentev
    http://TrackStudio.com

  3. #3
    Rituparna is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    22
    Rep Power
    0

    Smile

    how else could i access or work with the EJB entity classes?? I wanted to use the Java Persistent classes instead of JDBC, so a friend of mine suggested that i should go for Hibernate, it makes the task easier.
    and also, job-wise, Hibernate is demanding.
    So, i decided to learn it.

  4. #4
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Are you trying to build an EJB application before reading about how to use EJBs?
    You don't configure those things on Netbeans. Netbeans only helps you to develop an ear (or war) file which you then deploy to an application server.
    Better is to first get the Oracle Java EE tutorial and read it to learn EJBs before trying to build an application using them.

  5. #5
    Rituparna is offline Member
    Join Date
    Feb 2011
    Location
    India
    Posts
    22
    Rep Power
    0

    Default

    well, that's true i think.
    actually, i have used EJB session beans along with JDBC connectivity in my previous projects. and this time instead of using JDBC i wanted to use the EJB entity classes.
    so, i was trying to get that hibernate framework.
    i think, i must first get super clear about the EJB entityclass concepts before dealing with hibernate, right?

  6. #6
    r035198x is offline Senior Member
    Join Date
    Aug 2009
    Posts
    2,388
    Rep Power
    7

    Default

    Entities are no longer EJBs anymore. Just annotated Java classes and they don't need an EJB container anymore. Oracle's Java EE tutorial has a good section on JPA to get you started.

Similar Threads

  1. JSF + spring3 + hibernate in netBeans 6.8
    By hemant_metalia in forum JavaServer Faces (JSF)
    Replies: 3
    Last Post: 02-11-2011, 10:31 AM
  2. Hibernate Use
    By sireesha in forum JDBC
    Replies: 2
    Last Post: 05-21-2008, 03:05 AM
  3. Hibernate DAO
    By sundarjothi in forum Eclipse
    Replies: 0
    Last Post: 04-26-2008, 08:29 AM
  4. hibernate
    By vipinpvijayan in forum Web Frameworks
    Replies: 1
    Last Post: 04-21-2008, 05:41 PM
  5. Replies: 2
    Last Post: 06-30-2007, 03:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •