-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Hibernate tools and HBM generation
PostPosted: Mon Jun 08, 2009 9:53 am 
Newbie

Joined: Mon Jun 08, 2009 9:40 am
Posts: 1
Hi there,

I am using Hibernate Tools for Eclipse to generate HBM files but this is all it gives me:

Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
   "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
   "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.......persistence">
  <class name="ClassName">
  </class>
</hibernate-mapping>


None of the columns (attributes) in the class are picked up by Hibernate Tools. Here is my POJO Java Class:

Code:
package com.trendlogix.persistence;

import java.sql.Date;

public class AppNotes {

   private String nteId;
   private String nteType;
   private Date nteDate;
   private String nteStatus;
   private String nteClientVisibilityInd;
   private String nteText;

   public String getNteId() {
      return nteId;
   }
   public void setNteId(String nteId) {
      this.nteId = nteId;
   }
   public String getNteType() {
      return nteType;
   }
   public void setNteType(String nteType) {
      this.nteType = nteType;
   }
   public Date getNteDate() {
      return nteDate;
   }
   public void setNteDate(Date nteDate) {
      this.nteDate = nteDate;
   }
   public String getNteStatus() {
      return nteStatus;
   }
   public void setNteStatus(String nteStatus) {
      this.nteStatus = nteStatus;
   }
   public String getNteClientVisibilityInd() {
      return nteClientVisibilityInd;
   }
   public void setNteClientVisibilityInd(String nteClientVisibilityInd) {
      this.nteClientVisibilityInd = nteClientVisibilityInd;
   }
   public String getNteText() {
      return nteText;
   }
   public void setNteText(String nteText) {
      this.nteText = nteText;
   }
}


I am using Eclipse Version: 3.4.2 and Hibernate Tools for Eclipse Version: 3.2.4.GA-R200905070146-H18.

I go:

File -> New -> Hibernate XML Mapping file (hbm.xml)

Could someone please let me know what might be wrong? Is it that I did not install/configure Hibernate Tools properly OR is it that above listed portion of hbm file is all Hibernate Tools will provide?

Thanks in advance

Saeed


Top
 Profile  
 
 Post subject: Re: Hibernate tools and HBM generation
PostPosted: Thu Jun 11, 2009 7:27 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that is how it works in older versions - just there for a quick hbm.xml generation.

Try out the latest milestone build to get more functionallity.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.