[
http://jira.jboss.com/jira/browse/JBIDE-702?page=comments#action_12374486 ]
Michael Yuan commented on JBIDE-702:
------------------------------------
I think we can do one of the following:
1. If the user does not select a connection profile when she generates the project, we
will generate a default DS file for her project. The generated DS points to the DefaultDS
in JBoss (the same DS Seam-gen produces).
2. If the user needs to run generate-entities later, we will tell her that
generate-entities cannot be run against the default embedded DS. She will need to select a
real connection profile for her project before he can generate entities.
What do you think?
No connection specified, use defaultDs from jboss ?
---------------------------------------------------
Key: JBIDE-702
URL:
http://jira.jboss.com/jira/browse/JBIDE-702
Project: JBoss Tools
Issue Type: Feature Request
Components: Seam
Reporter: Max Andersen
Suggestion from Yuan is that if users doesn't specify any connection preferences we
should use the defaultDs.
Issues I see with this is that then our project will no longer "control" the
datasource and what connection properties that is in it ?
when we add generate-entities it should pick up what connection data is relevant.
Which one will be the master ? today in seam-gen it is spread out and I don't like to
make that worse...
e.g. in seam-gen there is
1) the actual datasource in jboss
2) the connection properties in build.properties
3) the connection properties in hibernate.console properties
None of these are reliably possible to keep in sync afaik - neither manually or
automatically
--
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