JPADataSource is a structure I created to aggregate the various configuration options necessary for any type of JPA data source. It is built up by the plugin options and various JPAContainer and JPAProvider objects. Does that answer your question? I suppose it could be re-used.<br>
<br>~Lincoln<br><br><div class="gmail_quote">On Wed, May 11, 2011 at 12:06 PM, Max Rydahl Andersen <span dir="ltr">&lt;<a href="mailto:max.andersen@redhat.com">max.andersen@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
doh! My bad.<br>
<br>
I had hardcoded the dialect to hsql.<br>
<br>
I&#39;ve done a quick fix where I read the dialect from persistence.xml and if for some reason you are not using hibernate you can also use --dialect to manually specify it.<br>
<br>
git pull master and it should work now ;) Please let me know how that goes!<br>
<br>
<br>
This one makes it even more clear we need to get someway in Forge to store and share database info.<br>
<br>
Lincoln, is JPADatasource usable for that ? seems to have all the details I want but it doesn&#39;t seem to be available from somewhere?<br>
<br>
Alternatively if I could get to the dialects known by HibernateProvider I could use that for code completions?<br>
<font color="#888888"><br>
/max<br>
</font><div><div></div><div class="h5"><br>
On May 11, 2011, at 15:06, brian wrote:<br>
<br>
&gt; when i connect to the db with dbvis, it says<br>
&gt;<br>
&gt; Oracle<br>
&gt; Oracle Database 11g Release 11.1.0.0.0 - Production<br>
&gt; Oracle JDBC driver<br>
&gt; 11.1.0.6.0-Production+<br>
&gt;<br>
&gt; ...and i&#39;m using the same ojdbc5_g.jar driver for both.<br>
&gt;<br>
&gt; b<br>
&gt;<br>
&gt;<br>
&gt; On Tue, 2011-05-10 at 23:00 +0200, Max Rydahl Andersen wrote:<br>
&gt;&gt; for some reason your oracle is not getting identified properly as Oracle.<br>
&gt;&gt;<br>
&gt;&gt; --schema YOURSCHEMA<br>
&gt;&gt;<br>
&gt;&gt; should definitely work.<br>
&gt;&gt;<br>
&gt;&gt; If not let me know which jdbc driver and oracle you are actually using.<br>
&gt;&gt;<br>
&gt;&gt; /max<br>
&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; the --table option gives the same error... not listening to --schema or<br>
&gt;&gt;&gt; --table?<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Tue, 2011-05-10 at 14:10 -0400, brian wrote:<br>
&gt;&gt;&gt;&gt; i&#39;m getting an error on generate-entities:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Caused by: org.hibernate.cfg.JDBCBinderException: Duplicate class name<br>
&gt;&gt;&gt;&gt; &#39;ed.domain.AllFileGroups&#39; generated for<br>
&gt;&gt;&gt;&gt; &#39;org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)&#39;. Same name where<br>
&gt;&gt;&gt;&gt; generated for &#39;org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)&#39;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ...i tried the --schema in an attempt to keep the systables out of it,<br>
&gt;&gt;&gt;&gt; but no joy.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; fwiw, i think i ran into this problem when i was in the code awhile ago<br>
&gt;&gt;&gt;&gt; and got past it... but i can&#39;t remember the fix :P<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; b<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; On Tue, 2011-05-10 at 11:31 -0400, Lincoln Baxter, III wrote:<br>
&gt;&gt;&gt;&gt;&gt; Awesome work, max! This is fantastic.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; On Sun, May 8, 2011 at 11:34 AM, Max Rydahl Andersen<br>
&gt;&gt;&gt;&gt;&gt; &lt;<a href="mailto:max.andersen@gmail.com">max.andersen@gmail.com</a>&gt; wrote:<br>
&gt;&gt;&gt;&gt;&gt;       Hi,<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;       I&#39;ve committed the fixes Lincoln and I came up with during<br>
&gt;&gt;&gt;&gt;&gt;       JBoss World to make the hibernate tools plugin run again.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;       Results up on <a href="https://github.com/forge/plugin-hibernate-tools" target="_blank">https://github.com/forge/plugin-hibernate-tools</a><br>
&gt;&gt;&gt;&gt;&gt;       with a <a href="http://readme.md" target="_blank">readme.md</a> on how to use.<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;       Short version:<br>
&gt;&gt;&gt;&gt;&gt;       $ cp driver.jar $FORGE_HOME/lib<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;       $ forge<br>
&gt;&gt;&gt;&gt;&gt;       $ cd projectwithpersistnce<br>
&gt;&gt;&gt;&gt;&gt;       $ generate-entities --url jdbc:hsqldb:localhost:9001 --driver<br>
&gt;&gt;&gt;&gt;&gt;       org.hsqldb.jdbcDriver<br>
&gt;&gt;&gt;&gt;&gt;       Generated 27 java entities.<br>
&gt;&gt;&gt;&gt;&gt;       $<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;       /max<br>
&gt;&gt;&gt;&gt;&gt;       <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;       _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt;       forge-dev mailing list<br>
&gt;&gt;&gt;&gt;&gt;       <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt;       <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt;&gt; Lincoln Baxter, III<br>
&gt;&gt;&gt;&gt;&gt; <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
&gt;&gt;&gt;&gt;&gt; &quot;Keep it Simple&quot;<br>
&gt;&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt;&gt; forge-dev mailing list<br>
&gt;&gt;&gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; forge-dev mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; forge-dev mailing list<br>
&gt;&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;&gt;<br>
&gt;&gt; /max<br>
&gt;&gt; <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; forge-dev mailing list<br>
&gt;&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; forge-dev mailing list<br>
&gt; <a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
<br>
/max<br>
<a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
forge-dev mailing list<br>
<a href="mailto:forge-dev@lists.jboss.org">forge-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/forge-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/forge-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Lincoln Baxter, III<br><a href="http://ocpsoft.com">http://ocpsoft.com</a><br><a href="http://scrumshark.com">http://scrumshark.com</a><br>&quot;Keep it Simple&quot;<br>