[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-3457) Generate hbm.xml file should generate default mapping for selected class(id, properties, etc)

Dmitry Geraskov (JIRA) jira-events at lists.jboss.org
Wed May 6 02:21:46 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBIDE-3457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12465923#action_12465923 ] 

Dmitry Geraskov commented on JBIDE-3457:
----------------------------------------

You can see that I don't use ConsoleConfiguration or other hibernate's specific configurations for that generation(I don't require user to make any choice except selection of java classes). I use only the information which I can give from the java classes. I generate only default mapping. And going to support some configurations by the wizard (something like generate jpa annotations has). From other hand I want this default generation be not very overfull with many settings. Using ConsoleConfiguration, it's NamingStrategy, dialect and other things will be enhancements of the feature (fill free to create subtasks here).

About uppercases: 
as I have only data from java classes and I haven't any knowledge about database in 99% cases generated code requires modification.  Uppercase database's objects names is a some kind of  'separation' them from java object's names.


> Generate hbm.xml file should generate default mapping for selected class(id, properties, etc)
> ---------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-3457
>                 URL: https://jira.jboss.org/jira/browse/JBIDE-3457
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: Hibernate
>    Affects Versions: 3.0.0.cr1
>            Reporter: Dmitry Geraskov
>            Assignee: Dmitry Geraskov
>             Fix For: 3.1.0.M1
>
>
> Now it generates only the following stub:
> <hibernate-mapping>
>   <class name="MyBean">
>   </class>
> </hibernate-mapping>

-- 
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

        



More information about the jbosstools-issues mailing list