Correct.<br><br>$ set VERBOSE true<br><br><div class="gmail_quote">On Wed, Apr 20, 2011 at 5:50 PM, Max Andersen <span dir="ltr"><<a href="mailto:manderse@redhat.com">manderse@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
You should be able to enable verbose møde for forge.<br>
<br>
Adding in dev list so lincoln might answer since it must be forge shortening the error.<br>
<br>
/max (sent from my phone)<br>
<br>
<br>
On 20/04/2011, at 21.30, brian <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>> wrote:<br>
<br>
><br>
> i was just going to ask you that. i don't get a stack trace. is it<br>
> going into a log file somewhere?<br>
><br>
> On Wed, 2011-04-20 at 15:21 -0400, Max Andersen wrote:<br>
>><br>
>> On 20/04/2011, at 21.10, brian <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>> wrote:<br>
>><br>
>>><br>
>>> hey max i use oracle. i need something to set the catalog to 'user'...<br>
>>> must default to 'all'... and you really don't need to be cranking out<br>
>>> classes for SYS tables.<br>
>><br>
>> Yes, and that should happen by default (skipping sys) since it should pick up oraclemetadatadialect but for some reason it doesn't for you :(<br>
>><br>
>>> i set the hibernate defaults in the persistence.xml and got a little<br>
>>> farther but now it's<br>
>>><br>
>>> Found 93 tables in datasource<br>
<div class="im">>>> ***ERROR*** [generate-entities] freemarker/template/TemplateException<br>
>>><br>
</div>>>> ...any idea where this comes from?<br>
>><br>
>> What is the full stacktrace ?<br>
>><br>
>> Looks like an error in the ftl templates<br>
>>> b<br>
<div class="im">>>><br>
>>> On Wed, 2011-04-20 at 19:12 +0200, Max Rydahl Andersen wrote:<br>
>>>>> Awesome! That;s great news!<br>
>>>>><br>
>>>>> Let's continue this on Forge-dev so that everyone can help out be available for future reference by other devs.<br>
>>>>><br>
>>>>> Max, do you know what's up with this error? I know you told me at one point that you can control this type of behavior.<br>
>>>>><br>
>>>><br>
</div><div class="im">>>>> Which database is this ?<br>
>>>> Hibernate Tools reads whatever the database driver/metadatadialect gives it<br>
>>>> to be able to handle multiple schemas.<br>
>>>><br>
>>>> There are a couple of ways to handle this:<br>
>>>><br>
>>>> implement a proper MetaDataDialect for the database (then it will automatically be ignored for all).<br>
>>>><br>
>>>> set hibernate.default_schema and hibernate.default_catalog to the schema/catalog you want to search in - Makes everything singleschema'ed (bad)<br>
>>>><br>
>>>> Use a reveng.xml (or use the programmatic API) to set the proper includes/excludes for SchemaSelection.<br>
>>>><br>
>>>> /max<br>
>>>><br>
>>>><br>
</div>>>>>> Thanks,<br>
>>>>> ~Lincoln<br>
<div><div></div><div class="h5">>>>>><br>
>>>>> On Wed, Apr 20, 2011 at 11:59 AM, brian <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>> wrote:<br>
>>>>><br>
>>>>> jmdc.readFromJDBC() is failing with this:<br>
>>>>><br>
>>>>> ***ERROR*** [generate-entities] Duplicate class name<br>
>>>>> 'edu.vt.middleware.domain.AllFileGroups' generated for<br>
>>>>> 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'. Same name where<br>
>>>>> generated for 'org.hibernate.mapping.Table(SYS._ALL_FILE_GROUPS)'<br>
>>>>><br>
>>>>> ...there should be a method/flag to tell it to ignore the SYS tableset,<br>
>>>>> huh?<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>> On Mon, 2011-04-11 at 10:50 -0400, Lincoln Baxter, III wrote:<br>
>>>>>> I took the liberty of updating the plugin to use the new APIs and get<br>
>>>>>> it to run. It doesn't however, succeed, because it's missing the<br>
>>>>>> HSQLDB driver, and also has hard-coded JDBC connection properties.<br>
>>>>>><br>
>>>>>> On Mon, Apr 11, 2011 at 10:43 AM, brian <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>> wrote:<br>
>>>>>><br>
>>>>>> ok i'm in business. knew it would be something procedural.<br>
>>>>>><br>
>>>>>> got the source, rebuilt the plugin, it runs.<br>
>>>>>><br>
>>>>>> now: there is already a GenerateEntities.java in<br>
>>>>>> org.hibernate.forge.plugin.GenerateEntities.java.<br>
>>>>>><br>
>>>>>> the source you sent is in<br>
>>>>>> org.jboss.seam.forge.persistence.plugins.GenerateEntities.java<br>
>>>>>><br>
>>>>>><br>
>>>>>> ...they look eerily similar. what gives?<br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> On Mon, 2011-04-11 at 10:33 -0400, brian wrote:<br>
>>>>>>> aha.<br>
>>>>>>><br>
>>>>>>> On Mon, 2011-04-11 at 10:18 -0400, Lincoln Baxter, III<br>
>>>>>> wrote:<br>
>>>>>>>> With Git, do your changes in the repo directory. Otherwise<br>
>>>>>> it will not<br>
>>>>>>>> be able to track them.<br>
>>>>>>>><br>
>>>>>>>> ~Lincoln<br>
>>>>>>>><br>
>>>>>>>> On Mon, Apr 11, 2011 at 10:17 AM, Lincoln Baxter, III<br>
>>>>>>>> <<a href="mailto:lincolnbaxter@gmail.com">lincolnbaxter@gmail.com</a>> wrote:<br>
>>>>>>>> Your local folder is actually an entire clone of<br>
>>>>>> the Git repo,<br>
>>>>>>>> with every revision from start to finish. So when<br>
>>>>>> you<br>
>>>>>>>> push/pull you are actually synchronizing<br>
>>>>>> repositories, This<br>
>>>>>>>> means that if your local repo thinks it's ahead of<br>
>>>>>> the remote<br>
>>>>>>>> repo, nothing will happen.<br>
>>>>>>>><br>
>>>>>>>> Running this command will probably fix your<br>
>>>>>> issues:<br>
>>>>>>>><br>
>>>>>>>> `git reset HEAD^1 --hard`<br>
>>>>>>>> `git reset HEAD^1 --hard`<br>
>>>>>>>><br>
>>>>>>>> `git pull<br>
>>>>>>>><br>
>>>>>> git://<a href="http://github.com/forge/plugin-hibernate-tools.git" target="_blank">github.com/forge/plugin-hibernate-tools.git</a><br>
>>>>>>>> master<br>
>>>>>>>><br>
>>>>>>>> Try those three. (The duplicate is to make your<br>
>>>>>> repo think<br>
>>>>>>>> that it's "behind".)<br>
>>>>>>>><br>
>>>>>>>> I know it's funky, but after I became familiar,<br>
>>>>>> the speed and<br>
>>>>>>>> control are very addictive compared to SVN. (You<br>
>>>>>> also don't<br>
>>>>>>>> have to worry about damaging any .svn/<br>
>>>>>> directories. Just the<br>
>>>>>>>> top-level .git/ directory, which is a whole lot<br>
>>>>>> less to keep<br>
>>>>>>>> track of.<br>
>>>>>>>><br>
>>>>>>>> ~Lincoln<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> On Mon, Apr 11, 2011 at 10:13 AM, brian<br>
>>>>>> <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>> wrote:<br>
>>>>>>>><br>
>>>>>>>> blew away local changes.<br>
>>>>>>>><br>
>>>>>>>> the way i'm used to seeing mvn/svn work is<br>
>>>>>> that i have<br>
>>>>>>>> a repo (in this<br>
>>>>>>>> case ~/plugin-hibernate-tools) and a<br>
>>>>>> working dir (in<br>
>>>>>>>> this<br>
>>>>>>>><br>
>>>>>> case /apps/src/brianxlong-plugin-hibernate-tools-2f38225) and<br>
>>>>>> i make my<br>
>>>>>>>> changes and do my builds in my working<br>
>>>>>> dir.<br>
>>>>>>>><br>
>>>>>>>> am i just doing it wrong? what's the<br>
>>>>>> workflow with<br>
>>>>>>>> git?<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> here's the output i'm seeing<br>
>>>>>>>> ...<br>
>>>>>>>><br>
>>>>>>>> brianx@elvis:~/plugin-hibernate-tools$ git<br>
>>>>>> pull<br>
>>>>>>>><br>
>>>>>> git://<a href="http://github.com/forge/plugin-hibernate-tools.git" target="_blank">github.com/forge/plugin-hibernate-tools.git</a><br>
>>>>>>>> master<br>
>>>>>>>><br>
>>>>>>>>> From<br>
>>>>>> git://<a href="http://github.com/forge/plugin-hibernate-tools" target="_blank">github.com/forge/plugin-hibernate-tools</a><br>
>>>>>>>> * branch master -><br>
>>>>>> FETCH_HEAD<br>
>>>>>>>> Already up-to-date.<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> ...<br>
>>>>>>>><br>
>>>>>>>> brianx@elvis:~/plugin-hibernate-tools$ git<br>
>>>>>> status<br>
>>>>>>>> # On branch master<br>
>>>>>>>> # Your branch is ahead of 'origin/master'<br>
>>>>>> by 1 commit.<br>
>>>>>>>> #<br>
>>>>>>>> nothing to commit (working directory<br>
>>>>>> clean)<br>
>>>>>>>> brianx@elvis:~/plugin-hibernate-tools$ git<br>
>>>>>> remote -v<br>
>>>>>>>> origin<br>
>>>>>>>><br>
>>>>>> <a href="https://github.com/forge/plugin-hibernate-tools" target="_blank">https://github.com/forge/plugin-hibernate-tools</a><br>
>>>>>>>> (fetch)<br>
>>>>>>>> origin<br>
>>>>>>>><br>
>>>>>> <a href="https://github.com/forge/plugin-hibernate-tools" target="_blank">https://github.com/forge/plugin-hibernate-tools</a><br>
>>>>>>>> (push)<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> On Mon, 2011-04-11 at 09:37 -0400, Lincoln<br>
>>>>>> Baxter, III<br>
>>>>>>>> wrote:<br>
>>>>>>>>> Hmmm.<br>
>>>>>>>>><br>
>>>>>>>>> That should have worked. What was the<br>
>>>>>> output of that<br>
>>>>>>>> command?<br>
>>>>>>>>> Similarly, what happens when you type<br>
>>>>>> 'git status'<br>
>>>>>>>> or 'git remote -v'<br>
>>>>>>>>><br>
>>>>>>>>> You might have local changes that are<br>
>>>>>> preventing the<br>
>>>>>>>> merge.<br>
>>>>>>>>><br>
>>>>>>>>> Lincoln Baxter's Droid<br>
>>>>>>>>> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
>>>>>>>>> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
>>>>>>>>> Keep it simple.<br>
>>>>>>>>><br>
>>>>>>>>> On Apr 11, 2011 9:33 AM, "brian"<br>
>>>>>> <<a href="mailto:brianx@vt.edu">brianx@vt.edu</a>><br>
>>>>>>>> wrote:<br>
>>>>>>>>>><br>
>>>>>>>>>> so since i did this<br>
>>>>>>>>>><br>
>>>>>>>>>> On Fri, 2011-04-08 at 13:37 -0400,<br>
>>>>>> Lincoln Baxter,<br>
>>>>>>>> III wrote:<br>
>>>>>>>>>>> git pull<br>
>>>>>>>><br>
>>>>>> git://<a href="http://github.com/forge/plugin-hibernate-tools.git" target="_blank">github.com/forge/plugin-hibernate-tools.git</a><br>
>>>>>>>> master<br>
>>>>>>>>>><br>
>>>>>>>>>> and yet your last suggestion worked<br>
>>>>>> (saying my<br>
>>>>>>>> source isn't<br>
>>>>>>>>> updated)...<br>
>>>>>>>>>> did i miss a step to get the source<br>
>>>>>> from repo to<br>
>>>>>>>> the source tree? i<br>
>>>>>>>>> had<br>
>>>>>>>>>> to execute the git pull from the<br>
>>>>>> actual repo,<br>
>>>>>>>> which isn't the way<br>
>>>>>>>>> i'm<br>
>>>>>>>>>> used to seeing maven work.<br>
>>>>>>>>>><br>
>>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> --<br>
>>>>>>>> Lincoln Baxter, III<br>
>>>>>>>><br>
>>>>>>>> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
>>>>>>>> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
>>>>>>>><br>
>>>>>>>> "Keep it Simple"<br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> --<br>
>>>>>>>> Lincoln Baxter, III<br>
>>>>>>>> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
>>>>>>>> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
>>>>>>>> "Keep it Simple"<br>
>>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> --<br>
>>>>>> Lincoln Baxter, III<br>
>>>>>> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
>>>>>> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
>>>>>> "Keep it Simple"<br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
>>>>><br>
</div></div>>>>>> --<br>
<div class="im">>>>>> Lincoln Baxter, III<br>
>>>>> <a href="http://ocpsoft.com" target="_blank">http://ocpsoft.com</a><br>
>>>>> <a href="http://scrumshark.com" target="_blank">http://scrumshark.com</a><br>
>>>>> "Keep it Simple"<br>
</div><div><div></div><div class="h5">>>>>> _______________________________________________<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>
>>>><br>
>>>> /max<br>
>>>> <a href="http://about.me/maxandersen" target="_blank">http://about.me/maxandersen</a><br>
>>>><br>
>>>><br>
>>>><br>
>>><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>"Keep it Simple"<br>