[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1519) generate-entities should populate and deliver hibernate-console.cfg.xml
Max Andersen (JIRA)
jira-events at lists.jboss.org
Wed Oct 3 10:56:03 EDT 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-1519?page=comments#action_12380190 ]
Max Andersen commented on JBSEAM-1519:
--------------------------------------
I don't get what this is needed for ?
hibernate console configuration uses JPA to autodiscover the entities so why is a cfg.xml file needed ?
> generate-entities should populate and deliver hibernate-console.cfg.xml
> -----------------------------------------------------------------------
>
> Key: JBSEAM-1519
> URL: http://jira.jboss.com/jira/browse/JBSEAM-1519
> Project: JBoss Seam
> Issue Type: Patch
> Components: Tools
> Affects Versions: 1.3.0.ALPHA
> Environment: seam CVS HEAD
> Reporter: Dan Allen
> Assigned To: Max Andersen
> Priority: Minor
> Fix For: 2.0.0.CR2
>
> Attachments: JBSEAM-1519-v1.txt
>
> Original Estimate: 30 minutes
> Remaining Estimate: 30 minutes
>
> When seam-gen executes the new-project command, it puts a hibernate-console.properties file in place for the Hibernate Console Eclipse plugin. This works fine for a blank project. However, after generate-entities executes, the Hibernate Console configuration cannot see the new entities. For that, a Hibernate Configuration (cfg.xml) file is required.
> I have created a patch that uses <hbmtemplate /> to create a hibernate-console.cfg.xml file with each of the entities created by generate-entities. The only downside is that it will clobber an existing hibernate-console.cfg.xml file. However, we could either enhance the build to be smart about this, or we just say what the hell, this is a prototype tool so expect some clobbering.
--
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 seam-issues
mailing list