[
https://jira.jboss.org/browse/JBIDE-6456?page=com.atlassian.jira.plugin.s...
]
Dhana kumar commented on JBIDE-6456:
------------------------------------
lol,
forgot about the maven project,
I created JPA project with Hibernate platform selected.
I created new Entity class -> Employee.java with fields id, firstName, lastName, email,
department of type Department.
Now my requirement is, when I select Source -> Generate Hibernate/JPA annotations,
I need @column annotation added to the field names with prefix: PSE01 for simple fields
(but column name should be with vowels removed, for ex:PSE01_FRST_NME for firstName),
PSF01 for department field with @ManyToOne annotation.
Or,
can you explain how to use the attached class in maven project, StgStandardNamingStrategy
in our Hibernate console configuration ?
It is good to have more options on the wizard when we say, Source
-> Apply Hibernate/JPA annotations
----------------------------------------------------------------------------------------------------
Key: JBIDE-6456
URL:
https://jira.jboss.org/browse/JBIDE-6456
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Hibernate
Reporter: Dhana kumar
Assignee: Max Rydahl Andersen
Fix For: LATER
Attachments: jpa-hibernate.zip
Hi,
It's really nice to work when we need DDL for the designed Entities using Dali JPA
GUI.
There are few options available(Enable optimistic locking, etc.,) in the wizard when I
click Source -> Apply Hibernate/JPA annotations.
It would be nice if custom naming strategy available.
For example, for the field name, firstName, I need PSE01_EMP_FRST_NM as a column name.
where, PSE01_EMP is the column prefix, FRST_NM is the name without vowels(removed
a,e,i,o,u).
So, in the wizard,if more options taken from user, like, Table prefix, column prefix,
want to remove vowels?
can you please suggest if I missed something.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira