Nigel_VS,
According to Java language,the names of variables should not start with digit,which is happening in your case.
I would recommend you to use a custom reverse engineering strategy(Refer http://www.myeclipseide.com/documentation/quickstarts/hibernate/#5-6).
Steps to follow:
============
1. Add the MyEclipse Persistence Tools library to your project.
* Right click your project and select Properties.
* On the Java Build Path page, choose Add Library… on the Libraries tab.
* Choose MyEclipse Libraries and then MyEclipse Persistence Tools.
* Press Finish.
2. Create a new class in your project which extends the org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy class.
3. Define the single argument constructor and override a method of interest, for example, columnToPropertyName.
Here’s an example which prefixes all generated propertes with “ME_”
MyStrategy.java
package com.genuitec.hibernate;
import org.hibernate.cfg.reveng.DelegatingReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.ReverseEngineeringStrategy;
import org.hibernate.cfg.reveng.TableIdentifier;
public class MyStrategy extends DelegatingReverseEngineeringStrategy {
public MyStrategy(ReverseEngineeringStrategy strategy) {
super (strategy);
}
public String columnToPropertyName(TableIdentifier table, String columnName) {
return “ME_” + super.columnToPropertyName(table, columnName);
}
}
Now while Reverse Engineering again on your table,you need to refer the above created class(MyStrategy.java) in “Custom rev_eng strategy” field in the 2nd wizard of Reverse Engineer .
Let me know how this works for you.