[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1173) Suggest table and column names in @Column(name=...) and @Table(name=...)

Vitali Yemialyanchyk (JIRA) jira-events at lists.jboss.org
Mon Feb 25 11:21:42 EST 2008


    [ http://jira.jboss.com/jira/browse/JBIDE-1173?page=comments#action_12400482 ] 
            
Vitali Yemialyanchyk commented on JBIDE-1173:
---------------------------------------------

really it is not clear in which case this feature should be available;

firstly - should the project be JPA project or nevertheless it is not necessary particularly for this issue?

eclipse consider project as JPA project if it has (at least):

<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
string in .project file
and
.settings\org.eclipse.wst.common.project.facet.core.xml:
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="jst.java"/>
  <fixed facet="jpt.jpa"/>
  <fixed facet="jst.utility"/>
  <installed facet="jst.java" version="5.0"/>
  <installed facet="jst.utility" version="1.0"/>
  <installed facet="jpt.jpa" version="1.0"/>
</faceted-project>
but I do not see easy way for the user to convert his current project into JPA project... or I just can't find it... is there something like command - convert current project into JPA project?

secondly if we have JPA project we should connect to DB - i.e. select DB connection in Data Source Explorer and press Connect in popup menu - in other case we do not get suggestions; also if we copy all necessary files to enable JPA for current project (simple just copy from JPA enabled project) - we should at least open project properties and press Apply button for JPA settings - only then we get tables suggestions...

so here there several way to implement it:
1) for the project we should have only - Hibernate Settings -> Enable Hibernate 3 support & project should be Java 5 project - so this is sufficient
2) the project should be JPA project and we should guide user through all troubles which I got (I describe it above) - and how we should provide for the user these capabilities - he should press context menu item at project - something like "Enable JPA" or ?
3) may be there is other so suggest it




> Suggest table and column names in @Column(name=...) and @Table(name=...)
> ------------------------------------------------------------------------
>
>                 Key: JBIDE-1173
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1173
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>            Reporter: Gavin King
>         Assigned To: Vitali Yemialyanchyk
>            Priority: Optional
>             Fix For: 2.1
>
>
> We have all the schema information right there.  Use it!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list