facebook

Xdoclet for Hibernate config file

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #229455 Reply

    zulu99
    Member

    Hi All

    I am newbie trying to use Xdoclet to generate Hibernate based XML config files.

    I managed to successfully generate the tablename.hbm.xml file for a particular model (table /class) using xdoclet tags for hibernate.

    What i wanted to know is how do I update my hibernate.cfg.xml file to incorporate the newly generated hbm.xml in the <mapping resource> tag of hibernate.cfg.xml.

    Also wanted to know if there is a way to generate hibernate.cfg.xml file using Xdoclet tags. If yes on which java file I need to interspere the Xdoclet tags in

    Do respond

    Rgrds
    SP

    #229459 Reply

    Riyad Kalla
    Member

    SP,
    Why are you using XDocetl to do this? MyEclipse will happily this all this for you: http://www.myeclipseide.com/images/tutorials/quickstarts/hibernate/

    #229470 Reply

    zulu99
    Member

    Hi Riyad

    Appreciate your quick response.

    Currently I have a Hibernate app all ready generated through Myeclipse.

    We want to do away with dependencies on Myeclipse or any IDE.

    i.e. the reason to incorporate Xdoclet for all such tasks (ejb artifacts, hibernate config files)

    Do post any details you have on the same

    Bye
    SP

    #229474 Reply

    Riyad Kalla
    Member

    Oh i c, unfortunately I don’t know the XDoclet tags (or if they exist) to do what you ask. I encourage any users that might know to post.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Xdoclet for Hibernate config file

You must be logged in to post in the forum log in