Dear,
I’m reverse enginering from an existing Oracle schema. The first time I did this I forgot to rename all the fields to a custom name. As most people do, we have some strategy for naming our fields. I want to give them a friendly name for use in my java application. So I deleted all my classes and tried to reverse engineer them again, but he doesn’t use my custom names.
I’m using myeclipse 5.1, I’m trying to generate the hibernate mappings with the Spring DAO template.
Now when I look into the hibernate.reveng.xml file, the settings seem ok. Here’s one of my tables:
<hibernate-reverse-engineering>
<table name="AGENT" schema="VN" class="Agent">
<primary-key>
<generator class="assigned"></generator>
<column name="AGENT_USERNAME" property="username" />
</primary-key>
<column name="AGENT_PASSWORD" property="password" />
<column name="AGENT_NAME" property="name" />
<column name="AGENT_EMAIL" property="email" />
<column name="AGENT_ALERT_YN" property="alertYn" />
<column name="AGENT_IMPC" property="impc" />
<column name="AGENT_TYPE" property="type" />
</table>
So I reverse engeineer it and I still get a pojo like this:
public class Agent implements java.io.Serializable {
// Fields
private String agentUsername;
private String agentPassword;
private String agentName;
private String agentEmail;
private String agentAlertYn;
private String agentImpc;
private String agentType;
Anybody got a clue?
Thnx