Re: [appfuse-user] Appfuse2 Struts problem

2008-12-14 Thread Nathan Anderson
Just like Oscar stated, it is generally considered a best practice to have database primary keys that have no business meaning attached to them. The example you provide appears as though it probably should be defined as a unique not null column, but not primary key. But even if you change the dat

Re: [appfuse-user] Appfuse2 struts2 mvn appfuse:full-source problem

2008-12-14 Thread Matt Raible
You cannot run "mvn appfuse:full-source" offline. I don't have any plans to change this behavior. I suggest you run full-source (and "mvn install") while online. You should be able to run "mvn -o commandName" offline after you get the initial artifacts downloaded. Matt On Sun, Dec 14, 2008 at 9:5

Re: [appfuse-user] Appfuse2 struts2 mvn appfuse:full-source problem

2008-12-14 Thread sudhakargupta
Thanks for your reply matt, if i want to create a new project in offline(means i don't have any internet connection) then how to use the mvn appfuse:full-source please suggest me how to solve this problem Sudhakar mraible wrote: > > It looks like SVN may be down. You might want to try again

Re: [appfuse-user] Appfuse2 Struts problem

2008-12-14 Thread sudhakargupta
Thanks for your reply and i need an id likes the 05-CS-123 so, i need an auto generated string to increment the last number, if the client want to use the assigned then how to mention in model class to assign the @Id value. Sudhakar Oscar Alvarez-2 wrote: > > Hello, > > What's the diference

Re: [appfuse-user] Appfuse2 Struts save/update problem

2008-12-14 Thread sudhakargupta
Thanks for your reply it's working fine with your example:-) Sudhakr Oscar Alvarez-2 wrote: > > Hi > > The many-to-one jsp autogenerated by appfuse result in a tag, > this tag requires a list to show values, and when try to get the list in > the > action and don't found it, you see the blan

Re: [appfuse-user] appfuse:gen error.

2008-12-14 Thread a1234567
I'm new to AppFuse It works great now! Thanks! a1234567 wrote: > > > > > I'm trying to run appfuse:gen command for a newly added class getting the > following error. > > Environment: > Maven version: 2.0.9 > Java version: 1.5.0_17 > OS name: "windows xp" version: "5.1" arch: "x86" Family

Re: [appfuse-user] appfuse:gen error.

2008-12-14 Thread a1234567
Hi Matt, The Client.java looks like this: === package com.mycompany.model; public class Client { private Long id; private String name; private String website; public Long getId() { return id; } public void setId(Long id) {

Re: [appfuse-user] appfuse:gen error.

2008-12-14 Thread Matt Raible
What does your Client.java look like? Matt On Dec 14, 2008, at 3:33 PM, a1234567 wrote: I'm trying to run appfuse:gen command for a newly added class getting the following error. Environment: Maven version: 2.0.9 Java version: 1.5.0_17 OS name: "windows xp" version: "5.1" arch: "x86"

[appfuse-user] appfuse:gen error.

2008-12-14 Thread a1234567
I'm trying to run appfuse:gen command for a newly added class getting the following error. Any help would be appreciated! Thanks == D:\projects\afuse\myproject>mvn appfuse:gen [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'appfuse'. [INFO]

Re: [appfuse-user] unable to mvn appfuse:gen for the model without @Id in Appfuse2

2008-12-14 Thread Rajesh.SriRamoju
Thanks for your reply Matt Regards RajeshSR mraible wrote: > > If you don't have an Id, AMP won't work for you. I'd suggest writing > your classes by hand. The tutorials should help you do this. > > Matt > > On Dec 14, 2008, at 6:53 AM, "Rajesh.SriRamoju" > > wrote: > >> >> Hi >> Pleas

Re: [appfuse-user] SessionFactory gets reinitialized and lost

2008-12-14 Thread mschipperheyn
Hi Matt, Thanks for your reply Hibernate.cfg.xml can be found in my project in: web\target\war\work\appfuse-spring-2.1-SNAPSHOT\WEB-INF web\target\war\work\appfuse-web-common-2.1-SNAPSHOT\WEB-INF core\src\main core\target I copied the appfuse spring and web common to my WEB-INF/lib directory b/c

Re: [appfuse-user] SessionFactory gets reinitialized and lost

2008-12-14 Thread Matt Raible
Do you have more than one hibernate.cfg.xml or sessionFactory bean definition in your project? I believe this could be causing it, or if you're manually instantiating an ApplicationContext yourself. Matt On Sun, Dec 14, 2008 at 6:48 AM, mschipperheyn wrote: > > Ok, yes, well it's kind of a test

[appfuse-user] appfuse2 + jbpm docu contribution

2008-12-14 Thread Walter Mauritz
Hi, appfuse2 + jbpm docu contribution Tutorials > Enterprise Integration. Plz alter as you like. Cheers, Walter -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a --

Re: [appfuse-user] Appuse2 struts2 update problem

2008-12-14 Thread Matt Raible
Add a validation rule to Person-validation.xml or delete the file if you have no validation rules. This should be covered in the tutorials. Matt On Dec 14, 2008, at 2:28 AM, "Rajesh.SriRamoju" > wrote: Hi Matt Iam unable to figure it out what might be the problem to get the error of th

Re: [appfuse-user] unable to mvn appfuse:gen for the model without @Id in Appfuse2

2008-12-14 Thread Matt Raible
If you don't have an Id, AMP won't work for you. I'd suggest writing your classes by hand. The tutorials should help you do this. Matt On Dec 14, 2008, at 6:53 AM, "Rajesh.SriRamoju" > wrote: Hi Please help me out here iam stuck with this problem Im using Appfuse2 Struts2 arche type I crea

[appfuse-user] unable to mvn appfuse:gen for the model without @Id in Appfuse2

2008-12-14 Thread Rajesh.SriRamoju
Hi Please help me out here iam stuck with this problem Im using Appfuse2 Struts2 arche type I created model Class as follows @Entity @Table(name="product") public class Product extends BaseObject { private String prodCode; private String Name; @Column(name="pCode",unique=true, nullable

Re: [appfuse-user] SessionFactory gets reinitialized and lost

2008-12-14 Thread mschipperheyn
Ok, yes, well it's kind of a test to see if I can make it work to get past some other issues. I don't expect any real support. Is it possible that Appfuse itself reinitializes the sessionFactory, since the appFuse entityPersisters are present in both cases and my own entityPersisters/entities only

[appfuse-user] Appuse2 struts2 update problem

2008-12-14 Thread Rajesh.SriRamoju
Hi Matt Iam unable to figure it out what might be the problem to get the error of this type Please help me to avoid this error what I did was : I created model class Product.java in that it conatins feilds as private Long id; private String name ; Private Date mfDate; after running command m