[
http://jira.jboss.com/jira/browse/JBSEAM-1519?page=all ]
Dan Allen updated JBSEAM-1519:
------------------------------
Attachment: JBSEAM-1519-v1.txt
JBSEAM-1519-v1.txt adds the new freemarker template and the hbmtemplate task to
seam-gen/build.xml.
Please note that the jtidy.jar is now required in the seam-gen/lib/ folder!! hbmtemplate
attempts to reformat XML files after processing them, and will fail if it cannot find
jtidy.jar. Frankly I think this is a bug in the Hibernate Tools, but for now it
doesn't hurt to format the XML document.
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
Priority: Minor
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