doh! My bad.
I had hardcoded the dialect to hsql.
I'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.
git pull master and it should work now ;) Please let me know how that goes!
This one makes it even more clear we need to get someway in Forge to store and share
database info.
Lincoln, is JPADatasource usable for that ? seems to have all the details I want but it
doesn't seem to be available from somewhere?
Alternatively if I could get to the dialects known by HibernateProvider I could use that
for code completions?
/max
On May 11, 2011, at 15:06, brian wrote:
when i connect to the db with dbvis, it says
Oracle
Oracle Database 11g Release 11.1.0.0.0 - Production
Oracle JDBC driver
11.1.0.6.0-Production+
...and i'm using the same ojdbc5_g.jar driver for both.
b
On Tue, 2011-05-10 at 23:00 +0200, Max Rydahl Andersen wrote:
> for some reason your oracle is not getting identified properly as Oracle.
>
> --schema YOURSCHEMA
>
> should definitely work.
>
> If not let me know which jdbc driver and oracle you are actually using.
>
> /max
>
>>
>> the --table option gives the same error... not listening to --schema or
>> --table?
>>
>>
>>
>> On Tue, 2011-05-10 at 14:10 -0400, brian wrote:
>>> i'm getting an error on generate-entities:
>>>
>>> Caused by: org.hibernate.cfg.JDBCBinderException: Duplicate class name
>>> 'ed.domain.AllFileGroups' generated for
>>> 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where
>>> generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'
>>>
>>> ...i tried the --schema in an attempt to keep the systables out of it,
>>> but no joy.
>>>
>>> fwiw, i think i ran into this problem when i was in the code awhile ago
>>> and got past it... but i can't remember the fix :P
>>>
>>> b
>>>
>>>
>>> On Tue, 2011-05-10 at 11:31 -0400, Lincoln Baxter, III wrote:
>>>> Awesome work, max! This is fantastic.
>>>>
>>>> On Sun, May 8, 2011 at 11:34 AM, Max Rydahl Andersen
>>>> <max.andersen(a)gmail.com> wrote:
>>>> Hi,
>>>>
>>>> I've committed the fixes Lincoln and I came up with during
>>>> JBoss World to make the hibernate tools plugin run again.
>>>>
>>>> Results up on
https://github.com/forge/plugin-hibernate-tools
>>>> with a readme.md on how to use.
>>>>
>>>> Short version:
>>>> $ cp driver.jar $FORGE_HOME/lib
>>>>
>>>> $ forge
>>>> $ cd projectwithpersistnce
>>>> $ generate-entities --url jdbc:hsqldb:localhost:9001 --driver
>>>> org.hsqldb.jdbcDriver
>>>> Generated 27 java entities.
>>>> $
>>>>
>>>> /max
>>>>
http://about.me/maxandersen
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>>>>
>>>>
>>>>
>>>> --
>>>> Lincoln Baxter, III
>>>>
http://ocpsoft.com
>>>>
http://scrumshark.com
>>>> "Keep it Simple"
>>>> _______________________________________________
>>>> forge-dev mailing list
>>>> forge-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>>>
>>>
>>> _______________________________________________
>>> forge-dev mailing list
>>> forge-dev(a)lists.jboss.org
>>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>>
>>
>> _______________________________________________
>> forge-dev mailing list
>> forge-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/forge-dev
>
> /max
>
http://about.me/maxandersen
>
>
>
> _______________________________________________
> forge-dev mailing list
> forge-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/forge-dev
_______________________________________________
forge-dev mailing list
forge-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/forge-dev