[appfuse-user] Re: appfuse:full-source failed

2010-09-29 Thread m_aliyar
Here is the command I used to create the project: mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-modular-spring-archetype -DarchetypeVersion=2.1.0-M2-SNAPSHOT -DgroupId=RoyalSoft -DartifactId=FixedAsset -DarchetypeRepository=http://oss.sonatype.

Re: [appfuse-user] Re: appfuse:full-source failed

2010-09-29 Thread Matt Raible
This looks like a Maven 3 issue. Can you try with Maven 2.2.1? On Wed, Sep 29, 2010 at 2:50 AM, m_aliyar wrote: > > Here is the command I used to create the project: > > > mvn archetype:generate -B -DarchetypeGroupId=org.appfuse.archetypes > -DarchetypeArtifactId=appfuse-modular-spring-archetype

[appfuse-user] Get id of newly inserted record

2010-09-29 Thread itsdipak
Hi, How to get id for the newly inserted record? I want to save that id in another table. In My action, in save method e8workReportManager.save(e8workReport); After this i want to insert this newly created id in e2work table. currently what im doing is- List e8mList = e8workReportManager.ge

Re: [appfuse-user] Get id of newly inserted record

2010-09-29 Thread Matt Raible
If you're using Hibernate or JPA, it's as simple as calling the following after a save: Long newId = e8workReport.getId(); Hope this helps, Matt On Wed, Sep 29, 2010 at 9:58 PM, itsdipak wrote: > > Hi, > How to get id for the newly inserted record? I want to save that id in > another table. >

[appfuse-user] Re: Get id of newly inserted record

2010-09-29 Thread itsdipak
I m using Hibernate.. but the id value is null if i try to get id as you said.. please help me out :-( -- View this message in context: http://appfuse.547863.n4.nabble.com/Get-id-of-newly-inserted-record-tp2720150p2720252.html Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] Re: Get id of newly inserted record

2010-09-29 Thread Matt Raible
Try calling super.flush() to get the object persisted. On Sep 30, 2010, at 12:43 AM, itsdipak wrote: > > I m using Hibernate.. > but the id value is null if i try to get id as you said.. > please help me out > :-( > -- > View this message in context: > http://appfuse.547863.n4.nabble.com