[JBoss JIRA] (JBIDE-11975) JPA Tooling - Adding JPA Annotations to a POJO - Allow users to choose the field to be marked as PK
by Vimal Kansal (JIRA)
Vimal Kansal created JBIDE-11975:
------------------------------------
Summary: JPA Tooling - Adding JPA Annotations to a POJO - Allow users to choose the field to be marked as PK
Key: JBIDE-11975
URL: https://issues.jboss.org/browse/JBIDE-11975
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Reporter: Vimal Kansal
Hi,
I am using JBDS 5.0 Beta 3. I created a POJO with follwoing attributes :
String username;
String password
String loginCount;
Then I invoked conetxt menu option "Generate Hibernate/JPA annotations", it generates only @Entity annotation. Obviously there is no way for the wizard to find out which attribute should act as PK. However if I include a string "id" anywhere in "username" e.g idusername, usernameid, useridname, it assumes it to be the PK and generates @Id and @GeneratedValue annotation. I wonder if this is by design? I think a better approach would be to let the user choose on the wizard, which field he wants to mark as PK.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months
[JBoss JIRA] Created: (JBIDE-3060) VPE template dialog ui suggestions
by Max Rydahl Andersen (JIRA)
VPE template dialog ui suggestions
----------------------------------
Key: JBIDE-3060
URL: https://jira.jboss.org/jira/browse/JBIDE-3060
Project: Tools (JBoss Tools)
Issue Type: Task
Components: Visual Page Editor core
Affects Versions: 2.1.2
Reporter: Max Rydahl Andersen
Assignee: Denis Golovin
Fix For: 3.0.0.beta1
The "custom template" for unknown tags is really useful but extremely well hidden and rather quirky to use
1) The shortcut in the context menu just says "Template" ...no indication of what it does.
I suggest we call it something like "Setup template for <the tag name>..." ; that describes what it does plus has ... to show a dialog will come up
2) The actual dialog allow me to type in *any* text for the tag, I instantly tried <button> but that is wrong it should be just button. Help the user here ;)
I also tried putting rich:calendar but it does not look like it supports template translation, only simple basic tags - then we should just have editable combo list with choices here.
3) Give a preview of how the tag will look like in the dialog
4) The Template editor in preferences has no instructions and no Add button; at least explain the the tables contain existing prefreences for already configured templates and tell them about the "Setup template.." action in the context menu.
....It also contains 2 lines with some names I never setup (i.e. unknowntag-1, unknwontag-2) - remove them.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
11 years, 6 months