
|
If you were logged in you would be able to see more operations.
|
|
|
AppFuse
Created: 05/Jun/07 05:10 AM
Updated: 27/Aug/07 07:40 PM
|
|
| Component/s: |
Tools - AppGen
|
| Affects Version/s: |
2.0-M5
|
| Fix Version/s: |
2.0-RC1
|
|
|
Environment:
|
Basic Struts
|
|
|
When I generate a new entity all those classes don't compile because import path are wrong :
- com.mycompany.myproject.service.MyEntityManager
- com.mycompany.myproject.service.impl.MyEntityManagerImpl
- com.mycompany.myproject.dao.MyEntityDao
- com.mycompany.myproject.dao.hibernate.MyEntityDaoHibernate
- com.mycompany.myproject.webapp.action.MyEntityAction
and
- com.mycompany.myproject.dao.MyEntityDaoTest
- com.mycompany.myproject.service.impl.MyEntityManagerImplTest
- com.mycompany.myproject.webapp.action.MyEntityActionTest
Example, code generated for MyEntityDao.java
package com.mycompany.myproject.dao;
import com.mycompany.myproject.dao.GenericDao;
import com.mycompany.myproject.model.Projet;
/**
* An interface that provides a data management interface to the Projet table.
*/
public interface ProjetDao extends GenericDao<Projet, Long> {
}
instead of :
package com.mycompany.myproject.dao;
import org.appfuse.dao.GenericDao;
import com.mycompany.myproject.model.Projet;
/**
* An interface that provides a data management interface to the Projet table.
*/
public interface ProjetDao extends GenericDao<Projet, Long> {
}
|
|
Description
|
When I generate a new entity all those classes don't compile because import path are wrong :
- com.mycompany.myproject.service.MyEntityManager
- com.mycompany.myproject.service.impl.MyEntityManagerImpl
- com.mycompany.myproject.dao.MyEntityDao
- com.mycompany.myproject.dao.hibernate.MyEntityDaoHibernate
- com.mycompany.myproject.webapp.action.MyEntityAction
and
- com.mycompany.myproject.dao.MyEntityDaoTest
- com.mycompany.myproject.service.impl.MyEntityManagerImplTest
- com.mycompany.myproject.webapp.action.MyEntityActionTest
Example, code generated for MyEntityDao.java
package com.mycompany.myproject.dao;
import com.mycompany.myproject.dao.GenericDao;
import com.mycompany.myproject.model.Projet;
/**
* An interface that provides a data management interface to the Projet table.
*/
public interface ProjetDao extends GenericDao<Projet, Long> {
}
instead of :
package com.mycompany.myproject.dao;
import org.appfuse.dao.GenericDao;
import com.mycompany.myproject.model.Projet;
/**
* An interface that provides a data management interface to the Projet table.
*/
public interface ProjetDao extends GenericDao<Projet, Long> {
}
|
Show » |
|
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>appfuse-maven-plugin</artifactId>
<version>${appfuse.version}</version>
<configuration>
<genericCore>${amp.genericCore}</genericCore>
<fullSource>${amp.fullSource}</fullSource>
</configuration>
</plugin>
Where amp.fullSource == true.
Matt