Index: topia/src/java/org/codelutin/topia/generators/jdo/ObjectModelToEntityPersistenceServiceClassGenerator.java diff -u topia/src/java/org/codelutin/topia/generators/jdo/ObjectModelToEntityPersistenceServiceClassGenerator.java:1.5 topia/src/java/org/codelutin/topia/generators/jdo/ObjectModelToEntityPersistenceServiceClassGenerator.java:1.6 --- topia/src/java/org/codelutin/topia/generators/jdo/ObjectModelToEntityPersistenceServiceClassGenerator.java:1.5 Wed Jun 2 09:33:08 2004 +++ topia/src/java/org/codelutin/topia/generators/jdo/ObjectModelToEntityPersistenceServiceClassGenerator.java Wed Jun 2 17:36:46 2004 @@ -23,9 +23,9 @@ * * @author Cédric Pineau * Copyright Code Lutin -* @version $Revision: 1.5 $ +* @version $Revision: 1.6 $ * -* Last update : $Date: 2004/06/02 09:33:08 $ +* Last update : $Date: 2004/06/02 17:36:46 $ * by : $Author: bpoussin $ */ package org.codelutin.topia.generators.jdo; @@ -100,6 +100,10 @@ return <%=clazz.getName()%>.class; } + public <%=clazz.getName()%> create<%=clazz.getName()%>() throws TopiaException{ + return (<%=clazz.getName()%>)super.create(); + } + public <%=clazz.getName()%> makePersistent(<%=clazz.getName()%> <%=Util.toLowerCaseFirstLetter(clazz.getName())%>) throws TopiaException { return (<%=clazz.getName()%>) super.makePersistent(<%=Util.toLowerCaseFirstLetter(clazz.getName())%>); } @@ -390,12 +394,16 @@ return <%=interfacez.getName()%>.class; } + public <%=interfacez.getName()%> create<%=interfacez.getName()%>() throws TopiaException{ + return (<%=interfacez.getName()%>)super.create(); + } + /** * Creates a transient tranferable TopiaEntity. * * @return the transient transferable TopiaEntity. *) - public <%=interfacez.getName()%> create() throws TopiaException { + public TopiaEntity create() throws TopiaException { throw new TopiaException("You can't create an instance of <%=interfacez.getName()%> as it is an interface"); }