No i don't have any mapping.
Here is my code.
public class Lineofbusiness extends BaseObject {
private Long id;
private String name;
@Id @GeneratedValue(strategy=GenerationType.AUTO)
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String toString() { return null; }
public boolean equals(Object o) { return false; }
public int hashCode() { return 0; }
}
mraible wrote:
>
> On 7/17/07, Msarda <[EMAIL PROTECTED]> wrote:
>>
>> Hi all,
>> I want to add one more model object in my application.
>> I have created Lineofbusiness.java in src/java/model folder.
>> I executed mvn appfuse:gen successfully.But when executing mvn
>> appfuse:install for that model object i ma getting following error.
>>
>> Unable to load file: java.io.FileNotFoundException:
>> C:\work\NewEclipseWorkspace\Copy of
>> EngagementFormreq7\target\appfuse\generate
>> d-sources\src\test\resources\Lineofbusiness-sample-data.xml (The system
>> cannot find the file specified)
>> at
>> org.apache.tools.ant.taskdefs.LoadFile.execute(LoadFile.java:170)
>> at
>> org.appfuse.mojo.installer.InstallArtifactsMojo.installSampleData(InstallArtifactsMojo.java:214)
>> at
>> org.appfuse.mojo.installer.InstallArtifactsMojo.execute(InstallArtifactsMojo.java:104)
>> at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443)
>> ----
>> ------
>> Caused by: java.io.FileNotFoundException:
>> C:\work\NewEclipseWorkspace\Copy
>> of EngagementFormreq7\target\appfuse\generated-sources\
>> src\test\resources\Lineofbusiness-sample-data.xml (The system cannot find
>> the file specified)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.<init>(FileInputStream.java:106)
>> at
>> org.apache.tools.ant.taskdefs.LoadFile.execute(LoadFile.java:138)
>> ... 20 more
>> --- Nested Exception ---
>> java.io.FileNotFoundException: C:\work\NewEclipseWorkspace\Copy of
>> EngagementFormreq7\target\appfuse\generated-sources\src\test\re
>> sources\Lineofbusiness-sample-data.xml (The system cannot find the file
>> specified)
>> at java.io.FileInputStream.open(Native Method)
>> at java.io.FileInputStream.<init>(FileInputStream.java:106)
>> at
>> org.apache.tools.ant.taskdefs.LoadFile.execute(LoadFile.java:138)
>> at
>> org.appfuse.mojo.installer.InstallArtifactsMojo.installSampleData(InstallArtifactsMojo.java:214)
>>
>> Why it is not creating all required files in target folder like it
>> created
>> for other model objects?
>
> I don't know - but my assumption is it's probably because you have
> @OneToMany or @ManyToMany relationships in your object.
>
> Matt
>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Error-executing-mvn-appfuse%3Ainstall-tf4100333s2369.html#a11660426
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Error-executing-mvn-appfuse%3Ainstall-tf4100333s2369.html#a11660775
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]