Re: [forge-dev] hibernate-tools
by Lincoln Baxter, III
while forge is running, type:
$ set VERBOSE true
you can use <TAB> to see a list of all "$ set" options.
On Wed, Apr 20, 2011 at 3:48 PM, brian <brianx(a)vt.edu> wrote:
>
>
> max just sent msg saying out till tues.
>
> where would i look for a stacktrace? the shell is giving me a oneliner
> error:
>
> ***ERROR*** [generate-entities] freemarker/template/TemplateException
>
> generated on the pj.start() call. attempted to catch exception but it's
> getting eaten. is there a log file somewhere for a stack trace?
>
>
>
>
>
>
> On Wed, 2011-04-20 at 12:28 -0400, Lincoln Baxter, III wrote:
> > Awesome! That;s great news!
> >
> > Let's continue this on Forge-dev so that everyone can help out be
> > available for future reference by other devs.
> >
> > 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.
> >
> > Thanks,
> > ~Lincoln
> >
> > On Wed, Apr 20, 2011 at 11:59 AM, brian <brianx(a)vt.edu> wrote:
> >
> > jmdc.readFromJDBC() is failing with this:
> >
> > ***ERROR*** [generate-entities] Duplicate class name
> > 'edu.vt.middleware.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)'
> >
> > ...there should be a method/flag to tell it to ignore the SYS
> > tableset,
> > huh?
> >
> >
> >
> >
> >
> > On Mon, 2011-04-11 at 10:50 -0400, Lincoln Baxter, III wrote:
> > > I took the liberty of updating the plugin to use the new
> > APIs and get
> > > it to run. It doesn't however, succeed, because it's missing
> > the
> > > HSQLDB driver, and also has hard-coded JDBC connection
> > properties.
> > >
> > > On Mon, Apr 11, 2011 at 10:43 AM, brian <brianx(a)vt.edu>
> > wrote:
> > >
> > > ok i'm in business. knew it would be something
> > procedural.
> > >
> > > got the source, rebuilt the plugin, it runs.
> > >
> > > now: there is already a GenerateEntities.java in
> > > org.hibernate.forge.plugin.GenerateEntities.java.
> > >
> > > the source you sent is in
> > >
> > org.jboss.seam.forge.persistence.plugins.GenerateEntities.java
> > >
> > >
> > > ...they look eerily similar. what gives?
> > >
> > >
> > >
> > > On Mon, 2011-04-11 at 10:33 -0400, brian wrote:
> > > > aha.
> > > >
> > > > On Mon, 2011-04-11 at 10:18 -0400, Lincoln Baxter,
> > III
> > > wrote:
> > > > > With Git, do your changes in the repo directory.
> > Otherwise
> > > it will not
> > > > > be able to track them.
> > > > >
> > > > > ~Lincoln
> > > > >
> > > > > On Mon, Apr 11, 2011 at 10:17 AM, Lincoln
> > Baxter, III
> > > > > <lincolnbaxter(a)gmail.com> wrote:
> > > > > Your local folder is actually an entire
> > clone of
> > > the Git repo,
> > > > > with every revision from start to
> > finish. So when
> > > you
> > > > > push/pull you are actually synchronizing
> > > repositories, This
> > > > > means that if your local repo thinks
> > it's ahead of
> > > the remote
> > > > > repo, nothing will happen.
> > > > >
> > > > > Running this command will probably fix
> > your
> > > issues:
> > > > >
> > > > > `git reset HEAD^1 --hard`
> > > > > `git reset HEAD^1 --hard`
> > > > >
> > > > > `git pull
> > > > >
> > > git://github.com/forge/plugin-hibernate-tools.git
> > > > > master
> > > > >
> > > > > Try those three. (The duplicate is to
> > make your
> > > repo think
> > > > > that it's "behind".)
> > > > >
> > > > > I know it's funky, but after I became
> > familiar,
> > > the speed and
> > > > > control are very addictive compared to
> > SVN. (You
> > > also don't
> > > > > have to worry about damaging any .svn/
> > > directories. Just the
> > > > > top-level .git/ directory, which is a
> > whole lot
> > > less to keep
> > > > > track of.
> > > > >
> > > > > ~Lincoln
> > > > >
> > > > >
> > > > >
> > > > > On Mon, Apr 11, 2011 at 10:13 AM, brian
> > > <brianx(a)vt.edu> wrote:
> > > > >
> > > > > blew away local changes.
> > > > >
> > > > > the way i'm used to seeing
> > mvn/svn work is
> > > that i have
> > > > > a repo (in this
> > > > > case ~/plugin-hibernate-tools)
> > and a
> > > working dir (in
> > > > > this
> > > > >
> > >
> > case /apps/src/brianxlong-plugin-hibernate-tools-2f38225) and
> > > i make my
> > > > > changes and do my builds in my
> > working
> > > dir.
> > > > >
> > > > > am i just doing it wrong?
> > what's the
> > > workflow with
> > > > > git?
> > > > >
> > > > >
> > > > > here's the output i'm seeing
> > > > > ...
> > > > >
> > > > >
> > brianx@elvis:~/plugin-hibernate-tools$ git
> > > pull
> > > > >
> > > git://github.com/forge/plugin-hibernate-tools.git
> > > > > master
> > > > >
> > > > > >From
> > > git://github.com/forge/plugin-hibernate-tools
> > > > > * branch master
> > ->
> > > FETCH_HEAD
> > > > > Already up-to-date.
> > > > >
> > > > >
> > > > > ...
> > > > >
> > > > >
> > brianx@elvis:~/plugin-hibernate-tools$ git
> > > status
> > > > > # On branch master
> > > > > # Your branch is ahead of
> > 'origin/master'
> > > by 1 commit.
> > > > > #
> > > > > nothing to commit (working
> > directory
> > > clean)
> > > > >
> > brianx@elvis:~/plugin-hibernate-tools$ git
> > > remote -v
> > > > > origin
> > > > >
> > > https://github.com/forge/plugin-hibernate-tools
> > > > > (fetch)
> > > > > origin
> > > > >
> > > https://github.com/forge/plugin-hibernate-tools
> > > > > (push)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Mon, 2011-04-11 at 09:37
> > -0400, Lincoln
> > > Baxter, III
> > > > > wrote:
> > > > > > Hmmm.
> > > > > >
> > > > > > That should have worked. What
> > was the
> > > output of that
> > > > > command?
> > > > > > Similarly, what happens when
> > you type
> > > 'git status'
> > > > > or 'git remote -v'
> > > > > >
> > > > > > You might have local changes
> > that are
> > > preventing the
> > > > > merge.
> > > > > >
> > > > > > Lincoln Baxter's Droid
> > > > > > http://ocpsoft.com
> > > > > > http://scrumshark.com
> > > > > > Keep it simple.
> > > > > >
> > > > > > On Apr 11, 2011 9:33 AM,
> > "brian"
> > > <brianx(a)vt.edu>
> > > > > wrote:
> > > > > > >
> > > > > > > so since i did this
> > > > > > >
> > > > > > > On Fri, 2011-04-08 at 13:37
> > -0400,
> > > Lincoln Baxter,
> > > > > III wrote:
> > > > > > >> git pull
> > > > >
> > > git://github.com/forge/plugin-hibernate-tools.git
> > > > > master
> > > > > > >
> > > > > > > and yet your last suggestion
> > worked
> > > (saying my
> > > > > source isn't
> > > > > > updated)...
> > > > > > > did i miss a step to get the
> > source
> > > from repo to
> > > > > the source tree? i
> > > > > > had
> > > > > > > to execute the git pull from
> > the
> > > actual repo,
> > > > > which isn't the way
> > > > > > i'm
> > > > > > > used to seeing maven work.
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Lincoln Baxter, III
> > > > >
> > > > > http://ocpsoft.com
> > > > > http://scrumshark.com
> > > > >
> > > > > "Keep it Simple"
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Lincoln Baxter, III
> > > > > http://ocpsoft.com
> > > > > http://scrumshark.com
> > > > > "Keep it Simple"
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Lincoln Baxter, III
> > > http://ocpsoft.com
> > > http://scrumshark.com
> > > "Keep it Simple"
> >
> >
> >
> >
> >
> >
> > --
> > Lincoln Baxter, III
> > http://ocpsoft.com
> > http://scrumshark.com
> > "Keep it Simple"
>
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months
Re: [forge-dev] hibernate-tools
by Lincoln Baxter, III
Awesome! That;s great news!
Let's continue this on Forge-dev so that everyone can help out be available
for future reference by other devs.
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.
Thanks,
~Lincoln
On Wed, Apr 20, 2011 at 11:59 AM, brian <brianx(a)vt.edu> wrote:
>
> jmdc.readFromJDBC() is failing with this:
>
> ***ERROR*** [generate-entities] Duplicate class name
> 'edu.vt.middleware.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)'
>
> ...there should be a method/flag to tell it to ignore the SYS tableset,
> huh?
>
>
>
>
> On Mon, 2011-04-11 at 10:50 -0400, Lincoln Baxter, III wrote:
> > I took the liberty of updating the plugin to use the new APIs and get
> > it to run. It doesn't however, succeed, because it's missing the
> > HSQLDB driver, and also has hard-coded JDBC connection properties.
> >
> > On Mon, Apr 11, 2011 at 10:43 AM, brian <brianx(a)vt.edu> wrote:
> >
> > ok i'm in business. knew it would be something procedural.
> >
> > got the source, rebuilt the plugin, it runs.
> >
> > now: there is already a GenerateEntities.java in
> > org.hibernate.forge.plugin.GenerateEntities.java.
> >
> > the source you sent is in
> > org.jboss.seam.forge.persistence.plugins.GenerateEntities.java
> >
> >
> > ...they look eerily similar. what gives?
> >
> >
> >
> > On Mon, 2011-04-11 at 10:33 -0400, brian wrote:
> > > aha.
> > >
> > > On Mon, 2011-04-11 at 10:18 -0400, Lincoln Baxter, III
> > wrote:
> > > > With Git, do your changes in the repo directory. Otherwise
> > it will not
> > > > be able to track them.
> > > >
> > > > ~Lincoln
> > > >
> > > > On Mon, Apr 11, 2011 at 10:17 AM, Lincoln Baxter, III
> > > > <lincolnbaxter(a)gmail.com> wrote:
> > > > Your local folder is actually an entire clone of
> > the Git repo,
> > > > with every revision from start to finish. So when
> > you
> > > > push/pull you are actually synchronizing
> > repositories, This
> > > > means that if your local repo thinks it's ahead of
> > the remote
> > > > repo, nothing will happen.
> > > >
> > > > Running this command will probably fix your
> > issues:
> > > >
> > > > `git reset HEAD^1 --hard`
> > > > `git reset HEAD^1 --hard`
> > > >
> > > > `git pull
> > > >
> > git://github.com/forge/plugin-hibernate-tools.git
> > > > master
> > > >
> > > > Try those three. (The duplicate is to make your
> > repo think
> > > > that it's "behind".)
> > > >
> > > > I know it's funky, but after I became familiar,
> > the speed and
> > > > control are very addictive compared to SVN. (You
> > also don't
> > > > have to worry about damaging any .svn/
> > directories. Just the
> > > > top-level .git/ directory, which is a whole lot
> > less to keep
> > > > track of.
> > > >
> > > > ~Lincoln
> > > >
> > > >
> > > >
> > > > On Mon, Apr 11, 2011 at 10:13 AM, brian
> > <brianx(a)vt.edu> wrote:
> > > >
> > > > blew away local changes.
> > > >
> > > > the way i'm used to seeing mvn/svn work is
> > that i have
> > > > a repo (in this
> > > > case ~/plugin-hibernate-tools) and a
> > working dir (in
> > > > this
> > > >
> > case /apps/src/brianxlong-plugin-hibernate-tools-2f38225) and
> > i make my
> > > > changes and do my builds in my working
> > dir.
> > > >
> > > > am i just doing it wrong? what's the
> > workflow with
> > > > git?
> > > >
> > > >
> > > > here's the output i'm seeing
> > > > ...
> > > >
> > > > brianx@elvis:~/plugin-hibernate-tools$ git
> > pull
> > > >
> > git://github.com/forge/plugin-hibernate-tools.git
> > > > master
> > > >
> > > > >From
> > git://github.com/forge/plugin-hibernate-tools
> > > > * branch master ->
> > FETCH_HEAD
> > > > Already up-to-date.
> > > >
> > > >
> > > > ...
> > > >
> > > > brianx@elvis:~/plugin-hibernate-tools$ git
> > status
> > > > # On branch master
> > > > # Your branch is ahead of 'origin/master'
> > by 1 commit.
> > > > #
> > > > nothing to commit (working directory
> > clean)
> > > > brianx@elvis:~/plugin-hibernate-tools$ git
> > remote -v
> > > > origin
> > > >
> > https://github.com/forge/plugin-hibernate-tools
> > > > (fetch)
> > > > origin
> > > >
> > https://github.com/forge/plugin-hibernate-tools
> > > > (push)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On Mon, 2011-04-11 at 09:37 -0400, Lincoln
> > Baxter, III
> > > > wrote:
> > > > > Hmmm.
> > > > >
> > > > > That should have worked. What was the
> > output of that
> > > > command?
> > > > > Similarly, what happens when you type
> > 'git status'
> > > > or 'git remote -v'
> > > > >
> > > > > You might have local changes that are
> > preventing the
> > > > merge.
> > > > >
> > > > > Lincoln Baxter's Droid
> > > > > http://ocpsoft.com
> > > > > http://scrumshark.com
> > > > > Keep it simple.
> > > > >
> > > > > On Apr 11, 2011 9:33 AM, "brian"
> > <brianx(a)vt.edu>
> > > > wrote:
> > > > > >
> > > > > > so since i did this
> > > > > >
> > > > > > On Fri, 2011-04-08 at 13:37 -0400,
> > Lincoln Baxter,
> > > > III wrote:
> > > > > >> git pull
> > > >
> > git://github.com/forge/plugin-hibernate-tools.git
> > > > master
> > > > > >
> > > > > > and yet your last suggestion worked
> > (saying my
> > > > source isn't
> > > > > updated)...
> > > > > > did i miss a step to get the source
> > from repo to
> > > > the source tree? i
> > > > > had
> > > > > > to execute the git pull from the
> > actual repo,
> > > > which isn't the way
> > > > > i'm
> > > > > > used to seeing maven work.
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Lincoln Baxter, III
> > > >
> > > > http://ocpsoft.com
> > > > http://scrumshark.com
> > > >
> > > > "Keep it Simple"
> > > >
> > > >
> > > >
> > > > --
> > > > Lincoln Baxter, III
> > > > http://ocpsoft.com
> > > > http://scrumshark.com
> > > > "Keep it Simple"
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Lincoln Baxter, III
> > http://ocpsoft.com
> > http://scrumshark.com
> > "Keep it Simple"
>
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months
[JBoss JIRA] Created: (SEAMFORGE-144) Cannot CD into Java Members (exception: null)
by Lincoln Baxter III (JIRA)
Cannot CD into Java Members (exception: null)
---------------------------------------------
Key: SEAMFORGE-144
URL: https://issues.jboss.org/browse/SEAMFORGE-144
Project: Seam Forge
Issue Type: Bug
Components: Builtin Plugins, Resources API, Shell
Affects Versions: 1.0.0.Alpha3
Reporter: Lincoln Baxter III
Priority: Minor
Fix For: 1.0.0.Alpha4
[forge-distribution] dist $ cd ~/Desktop/s/src/main/java/com/s/domain/Customer.java
[s] Customer.java $ cd id::long
***ERROR*** [cd] null
[s] Customer.java $ cd id::long
***ERROR*** [cd] command option 'at index [0]' must be of type 'Resource[]'
[s] Customer.java $ cd ..
***ERROR*** [cd] null
[s] Customer.java $ cd ..
***ERROR*** [cd] null
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years, 7 months
Manipulating the pom: classifiers and dependencyManagement
by Brian Leathem
Hey Forgeheads!
I'm using the DependencyBuilder to add dependencies to the pom, but I'm
missing a "setClassifier" method. I'll file a jira for this, and maybe
even submit a patch if no one else beats me to it!
The next piece I'm looking for is adding a <dependencyManagement>
section to my pom, and adding dependencies to that. I can't however
find anywhere in the API to do this. Does this functionality exist? Or
should I file a jira?
Thanks,
Brian Leathem
13 years, 7 months
Major change to forge Java EE plugins packaging
by Lincoln Baxter, III
FYI. To make the package naming more appropriate going forward, I've updated
the base package for the Java EE 6 plugins from:
org.jboss.seam.forge.spec --to-> org.jboss.seam.forge.spec.javaee6
This takes into account that there will be other versions of Java EE than
just EE 6 going forward. I am also considering moving the plugins themsleves
out of this project, and making this a "Facet only" API.
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months
Re: [forge-dev] Fw: Re: Mojavelinux.com Feedback: seam-gen and cdi/weld
by Lincoln Baxter, III
Hi John!
Thank you for your interest! I think it's fair to say that we are "close" to
having a fully-functional database reverse-engineering plugin, but we are
not there yet. Brian (ccd) has been doing some work recently (when he has
time) to get Max Andersen's prototype up and running. The prototype is here,
but has a few shortcomings:
https://github.com/forge/plugin-hibernate-tools
1. Connection settings are hardcoded
2. JDBC drivers are not included with the plugin
3. Does not take persistence.xml into account, if it exists
In short, it works, but is not usable yet; however, these are all things
that can be worked on if you are interested! And I would be more than happy
to help you get together with Brian and get two brains working on this!
Would you be intersted in that?
No matter your level of commitment, I would recommend joining the dev and
users lists:
- https://lists.jboss.org/mailman/listinfo/forge-dev
- https://lists.jboss.org/mailman/listinfo/forge-users
Just let me know and I'll get you all the info that you'll need :)
~Lincoln
On Thu, Mar 17, 2011 at 8:57 PM, John du Clos <duclosjj(a)yahoo.com> wrote:
> Hi Lincoln-
>
> I was chatting with Dan Allen and he mentioned you are working on Forge and
> specifically the reverse engineering feature from the database. I wanted to
> reach out to you to see if you have any early versions you need testers to
> help you verify this feature.
> I look forward to hearing from you!
> John
>
> --- On *Wed, 3/16/11, Dan Allen <dan.j.allen(a)gmail.com>* wrote:
>
>
> From: Dan Allen <dan.j.allen(a)gmail.com>
> Subject: Re: Mojavelinux.com Feedback: seam-gen and cdi/weld
> To: duclosjj(a)yahoo.com
> Date: Wednesday, March 16, 2011, 9:33 PM
>
> Hey John,
> Thanks for reading the book. I'm glad it helped you along. I know about
> those painful days of J2EE you are talking about.
> The best way to get started atm is using the Maven archetype.
> http://tinyurl.com/gojavaee
> That gives you a starter project. We don't yet have the reverse engineering
> yet for this environment. That what Forge will offer soon. Check out the
> issue tracker or mailing list for updates.
> Hope that gets you started. Cheers,
> - Dan Allen
> Sent from my Android-powered phone:
> An open platform for carriers, consumers and developers
> On Mar 16, 2011 9:04 PM, <duclosjj(a)yahoo.com<http://us.mc308.mail.yahoo.com/mc/compose?to=duclosjj@yahoo.com>>
> wrote:
> > Submitted by: John duClos <duclosjj(a)yahoo.com<http://us.mc308.mail.yahoo.com/mc/compose?to=duclosjj@yahoo.com>>
> on Wednesday, March 16th, 2011 @ 9:04:25 pm (-0400)
> >
> > Online Form Fields
> > ------------------
> >
> > Url:
> >
> >
> > Message:
> > Dan-
> >
> > I purchased your Seam book when it was published and am a supporter of
> > the Seam framework since I lived the challenging days of early J2EE
> > development.
> >
> > I work with database centric solutions and seam-gen allowed me to
> > develop solutions in record time by getting my project started very
> > quickly. I'd like to start implementing JEE 6/CDI with JBoss AS 6, but
> > I can't seem to find a way to issue the seam-gen command.
> >
> > I looked at Forge but that is not where seam-gem was. Do you know of a
> > valid seam-gen solution for JEE 6/CDI based projects (Seam 3).
> >
> > Thanks,
> > John
> >
> > Client Variables
> > ----------------
> >
> > HTTP_USER_AGENT:
> > Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1;
> .NET CLR 2.0.50727; .NET CLR 3.5.21022; .NET CLR 3.5.30729; MDDS; .NET CLR
> 3.0.30729; MS-RTC LM 8; AskTB5.4)
> >
> >
>
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months