Joined: Fri Sep 23, 2011 3:25 am Posts: 1
|
Hi All, I have been trying to using hibernate console wizard to generate code . I am using Eclipe IDE (Version: Helios Service Release 2) I have add jar file mysql-connector-java-5.0.8-bin.jar for DB connectivity . When i click run nothing is seen . No java code. No log file is being generated .
MyCfg file <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.bytecode.use_reflection_optimizer">false</property> <property name="hibernate.connection.driver_class">org.gjt.mm.mysql.Driver</property> <property name="hibernate.connection.password">siso123</property> <property name="hibernate.connection.url">jdbc:mysql://localhost:3306/</property> <property name="hibernate.connection.username">root</property> <property name="hibernate.default_schema">hm2mp</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQL5Dialect</property> <property name="hibernate.search.autoregister_listeners">false</property> </session-factory> </hibernate-configuration>
Hibernate.hbm.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd"> <hibernate-mapping> <class name="HM2MDevice"> <id name="DeviceId"/> </class> </hibernate-mapping>
Please help me :-)
|
|