You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(11) |
Oct
(10) |
Nov
(3) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(44) |
Feb
(30) |
Mar
(11) |
Apr
(43) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(9) |
Oct
|
Nov
(1) |
Dec
(1) |
2008 |
Jan
(1) |
Feb
|
Mar
|
Apr
(17) |
May
(9) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From:
<ji...@is...> - 2007-01-10 15:44:32
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-4?page=3Dall = ] R=C3=A9mi Flament resolved SALTODB-4. -------------------------------- Resolution: Fixed This has been added in rev 209 > DAO should have a removeById() method > ------------------------------------- > > Key: SALTODB-4 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-4 > Project: Salto-db > Issue Type: Improvement > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > When you want to remove an entity with the generated EJB3 DAO, you need t= o load it from database with the getById() method and then to remove it wit= h the delete() method.=20 > =20 > This makes two sql orders, while it could be done with only one. The DAO= should have a generated removeById() method to do this. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <rfl...@us...> - 2007-01-10 15:43:54
|
Revision: 209 http://svn.sourceforge.net/salto-db/?rev=209&view=rev Author: rflament Date: 2007-01-10 07:43:50 -0800 (Wed, 10 Jan 2007) Log Message: ----------- SALTODB-4 Modified Paths: -------------- salto-db-generator/trunk/src/com/salto/db/generator/Constants.java salto-db-generator/trunk/templates/hibernateejb3dao/abstracthibernatedao.vm salto-db-generator/trunk/templates/hibernateejb3dao/dao.vm salto-db-generator/trunk/templates/hibernateejb3dao/genericdao.vm salto-db-generator/trunk/templates/hibernateejb3dao/hibernatedao.vm Modified: salto-db-generator/trunk/src/com/salto/db/generator/Constants.java =================================================================== --- salto-db-generator/trunk/src/com/salto/db/generator/Constants.java 2007-01-10 09:44:09 UTC (rev 208) +++ salto-db-generator/trunk/src/com/salto/db/generator/Constants.java 2007-01-10 15:43:50 UTC (rev 209) @@ -10,5 +10,5 @@ } - public static final String VERSION = "v1.0.14"; + public static final String VERSION = "v1.0.15"; } Modified: salto-db-generator/trunk/templates/hibernateejb3dao/abstracthibernatedao.vm =================================================================== --- salto-db-generator/trunk/templates/hibernateejb3dao/abstracthibernatedao.vm 2007-01-10 09:44:09 UTC (rev 208) +++ salto-db-generator/trunk/templates/hibernateejb3dao/abstracthibernatedao.vm 2007-01-10 15:43:50 UTC (rev 209) @@ -42,5 +42,5 @@ } delete(entity); } - + } Modified: salto-db-generator/trunk/templates/hibernateejb3dao/dao.vm =================================================================== --- salto-db-generator/trunk/templates/hibernateejb3dao/dao.vm 2007-01-10 09:44:09 UTC (rev 208) +++ salto-db-generator/trunk/templates/hibernateejb3dao/dao.vm 2007-01-10 15:43:50 UTC (rev 209) @@ -19,7 +19,8 @@ #set ($pk="${jdoInfo.javaClassName}PK") #end /** - * Generated at $date + * <p>Hibernate DAO layer for ${jdoInfo.javaClassName}s</p> + * <p>Generated at $date</p> * * @author ${generatorVersion} */ Modified: salto-db-generator/trunk/templates/hibernateejb3dao/genericdao.vm =================================================================== --- salto-db-generator/trunk/templates/hibernateejb3dao/genericdao.vm 2007-01-10 09:44:09 UTC (rev 208) +++ salto-db-generator/trunk/templates/hibernateejb3dao/genericdao.vm 2007-01-10 15:43:50 UTC (rev 209) @@ -25,5 +25,7 @@ void delete(T entity); void delete(T entity, Boolean doItNow); + + int deleteById(ID id); } \ No newline at end of file Modified: salto-db-generator/trunk/templates/hibernateejb3dao/hibernatedao.vm =================================================================== --- salto-db-generator/trunk/templates/hibernateejb3dao/hibernatedao.vm 2007-01-10 09:44:09 UTC (rev 208) +++ salto-db-generator/trunk/templates/hibernateejb3dao/hibernatedao.vm 2007-01-10 15:43:50 UTC (rev 209) @@ -25,7 +25,8 @@ #end /** - * Generated at $date + * <p>Hibernate DAO layer for ${jdoInfo.javaClassName}s</p> + * <p>Generated at $date</p> * * @author ${generatorVersion} */ @@ -48,6 +49,13 @@ } else return getById(id); } + + public int deleteById($pk id) + { + Query q = session.createQuery("delete from ${jdoInfo.javaClassName} where id = :id"); + q.setParameter("id",id); + return q.executeUpdate(); + } @SuppressWarnings("unchecked") public List<${jdoInfo.javaClassName}> findAll() { @@ -128,7 +136,7 @@ */ @SuppressWarnings("unchecked") public List<${jdoInfo.javaClassName}> findBy$util.doNameCreator.attribute2class($col.javaAttName)($col.getNonPrimitifClass() ${col.javaAttName}) { - Query q = session.createQuery("from ${jdoInfo.javaClassName} where $util.doNameCreator.class2attribute($util.doNameCreator.createDoName(${colfk2.getPkTableName()})).${colfk2.getPkColumnName()} = :${col.javaAttName}"); + Query q = session.createQuery("from ${jdoInfo.javaClassName} where $util.doNameCreator.class2attribute($util.doNameCreator.createDoName(${colfk2.getPkTableName()})).${col.javaAttName} = :${col.javaAttName}"); q.setParameter("${col.javaAttName}",${col.javaAttName}); q.setCacheable(true); return q.list(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2007-01-10 09:44:10
|
Revision: 208 http://svn.sourceforge.net/salto-db/?rev=208&view=rev Author: rflament Date: 2007-01-10 01:44:09 -0800 (Wed, 10 Jan 2007) Log Message: ----------- if we the precision is too high, use a long anyway (it makes more sense than a double since it doesn't have any decimals) Modified Paths: -------------- salto-db-generator/trunk/src/salto/tool/jdo/util/DoJdbcConvert.java Modified: salto-db-generator/trunk/src/salto/tool/jdo/util/DoJdbcConvert.java =================================================================== --- salto-db-generator/trunk/src/salto/tool/jdo/util/DoJdbcConvert.java 2007-01-10 09:21:29 UTC (rev 207) +++ salto-db-generator/trunk/src/salto/tool/jdo/util/DoJdbcConvert.java 2007-01-10 09:44:09 UTC (rev 208) @@ -145,8 +145,9 @@ if (attInfo.getDecDigit() == 0) { if (attInfo.getColSize() < 4) result = "Short"; else if (attInfo.getColSize() < 10) result = "Integer"; - else if (attInfo.getColSize() < 19) result = "Long"; - else result = "Double"; + //else if (attInfo.getColSize() < 19) result = "Long"; + else result = "Long"; + } else { result = "Double"; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From:
<ji...@is...> - 2007-01-10 09:30:33
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-3?page=3Dall = ] R=C3=A9mi Flament resolved SALTODB-3. -------------------------------- Resolution: Fixed fixed. Of course it works only if there is actually a foreign key in db. > Some generated findByXXX() methods doesn't work > ----------------------------------------------- > > Key: SALTODB-3 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-3 > Project: Salto-db > Issue Type: Bug > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > The generated findByXXX() method doesn't work if XXX is a part of a forei= gn key.=20 > The generated HQL is not good, because it relies on the attribute which s= hould have the same name as the SQL column name, except that this attribute= is not generated, since it is a part of a foreign key, it's a pointer to a= nother object. > Bad HQL : "where idXXX =3D :idXXX" > Good HQL : "where XXX.id =3D :idXXX" --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From:
<ji...@is...> - 2007-01-10 09:25:29
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-5?page=3Dall = ] R=C3=A9mi Flament resolved SALTODB-5. -------------------------------- Resolution: Fixed corrected in rev 207 > HibernateUtil is not correct when generating ejb3 annotations > ------------------------------------------------------------- > > Key: SALTODB-5 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-5 > Project: Salto-db > Issue Type: Bug > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > When I use the eclipse plugin to generate ejb3 pojos and the dao, the hib= ernateutil doesn't work because it uses a Configuration instead of an Annot= ationConfiguration : > static { > =09=09try { > =09=09=09sessionFactory =3D new Configuration().configure().buildSessionF= actory();=09=09 > =09=09} catch (Throwable ex) { > =09=09=09throw new ExceptionInInitializerError(ex); > =09=09} > =09} > and it should be this : > static { > =09=09try { > =09=09=09sessionFactory =3D new AnnotationConfiguration().configure().bui= ldSessionFactory();=09=09 > =09=09} catch (Throwable ex) { > =09=09=09throw new ExceptionInInitializerError(ex); > =09=09} > =09} --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <rfl...@us...> - 2007-01-10 09:21:30
|
Revision: 207 http://svn.sourceforge.net/salto-db/?rev=207&view=rev Author: rflament Date: 2007-01-10 01:21:29 -0800 (Wed, 10 Jan 2007) Log Message: ----------- SALTODB-5 Modified Paths: -------------- salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java Modified: salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java =================================================================== --- salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java 2007-01-10 09:16:01 UTC (rev 206) +++ salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3AndHibernateDAOPlugin.java 2007-01-10 09:21:29 UTC (rev 207) @@ -71,6 +71,7 @@ context.put("date", new Date()); context.put("dialect", this.ejb3Plugin); context.put("pckName", pckName); + context.put("annotations", String.valueOf(true)); runVelocity(TEMPLATE_PATH, "hibernatedaofactory.vm", srcPath + "/" + (pckName + ".hibernate").replace('.', '/') + "/", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From:
<ji...@is...> - 2007-01-10 09:17:33
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-7?page=3Dall = ] R=C3=A9mi Flament resolved SALTODB-7. -------------------------------- Resolution: Fixed Corrected in rev 206 > associations hibernate mapping > ------------------------------ > > Key: SALTODB-7 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-7 > Project: Salto-db > Issue Type: Improvement > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > Associations are mapped using a bidirectonial one-to-many andmany-to-one,= using a join columns. > Today if you have a parent/child relationship the generated code is : > =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @OneToMany > =09@JoinColumn(name =3D "PARENT_ID") > =09public List<Child> getChilds() { > =09=09return childs; > =09} > =3D=3D=3D Child =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @ManyToOne > =09@JoinColumn(name =3D "PARENT_ID") > =09public Parent getParent() { > =09=09return parent; > =09} > This is ok but if you just need to update a parent, you need to fetch all= the children and to set them back because if you don't, hibernate will gen= erate this sql query : > update child set parent_id=3DNULL where parent_id=3D? > This should not be the default because it is tricky (you want to update a= column of a table and you end up updating two columns of two tables withou= t knowing it). > To avoid this behavior, the generator should generate this code for the p= arent : > =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @OneToMany(mappedBy=3D"parent") > =09public List<Child> getChilds() { > =09=09return childs; > =09} --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <rfl...@us...> - 2007-01-10 09:16:04
|
Revision: 206 http://svn.sourceforge.net/salto-db/?rev=206&view=rev Author: rflament Date: 2007-01-10 01:16:01 -0800 (Wed, 10 Jan 2007) Log Message: ----------- http://issues.salto-consulting.com/jira/browse/SALTODB-7 Modified Paths: -------------- salto-db-generator/trunk/templates/ejb3/dataobject.vm salto-db-generator/trunk/templates/ejb3/setter.vm Modified: salto-db-generator/trunk/templates/ejb3/dataobject.vm =================================================================== --- salto-db-generator/trunk/templates/ejb3/dataobject.vm 2007-01-09 15:31:08 UTC (rev 205) +++ salto-db-generator/trunk/templates/ejb3/dataobject.vm 2007-01-10 09:16:01 UTC (rev 206) @@ -22,13 +22,13 @@ /** #if ($jdoInfo.tableShem) - * Pojo mapping table ${jdoInfo.tableShem}.${jdoInfo.tableName} + * <p>Pojo mapping table ${jdoInfo.tableShem}.${jdoInfo.tableName}</p> #else - * Pojo mapping table ${jdoInfo.tableName} + * <p>Pojo mapping table ${jdoInfo.tableName}</p> #end * ${jdoInfo.getTableRemarks()} * - * Generated at $date + * <p>Generated at $date</p> * @author ${generatorVersion} * */ Modified: salto-db-generator/trunk/templates/ejb3/setter.vm =================================================================== --- salto-db-generator/trunk/templates/ejb3/setter.vm 2007-01-09 15:31:08 UTC (rev 205) +++ salto-db-generator/trunk/templates/ejb3/setter.vm 2007-01-10 09:16:01 UTC (rev 206) @@ -157,8 +157,7 @@ * Get the list of $util.DoNameCreator.createDoName($colfk2.getFkTableName()) */ #if ($annotations=="true") - @OneToMany - @JoinColumn(name = "$colfk2.getFkColumnName()") + @OneToMany(mappedBy="${util.DoNameCreator.class2attribute($util.DoNameCreator.createDoName($jdoInfo.tableName))}") #end public List<$util.DoNameCreator.createDoName($colfk2.getFkTableName())> get$util.DoNameCreator.createDoName($colfk2.getFkTableName())s() { return this.${util.DoNameCreator.class2attribute($util.DoNameCreator.createDoName($colfk2.getFkTableName()))}s; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From:
<ji...@is...> - 2007-01-09 15:33:34
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-6?page=3Dall = ] R=C3=A9mi Flament closed SALTODB-6. ------------------------------ Resolution: Fixed dialect added in revision 205 > Oracle Dialect > -------------- > > Key: SALTODB-6 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-6 > Project: Salto-db > Issue Type: Improvement > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > Dialect for Oracle : org.hibernate.dialect.OracleDialect --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <rfl...@us...> - 2007-01-09 15:31:14
|
Revision: 205 http://svn.sourceforge.net/salto-db/?rev=205&view=rev Author: rflament Date: 2007-01-09 07:31:08 -0800 (Tue, 09 Jan 2007) Log Message: ----------- dialect for oracle db Modified Paths: -------------- salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3Plugin.java Modified: salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3Plugin.java =================================================================== --- salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3Plugin.java 2007-01-09 15:28:57 UTC (rev 204) +++ salto-db-generator/trunk/src/com/salto/db/generator/plugin/EJB3Plugin.java 2007-01-09 15:31:08 UTC (rev 205) @@ -18,6 +18,7 @@ static { dialects.put("MySQL", "org.hibernate.dialect.MySQLDialect"); + dialects.put("Oracle", "org.hibernate.dialect.OracleDialect"); // TODO: fill this map } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2007-01-09 15:28:58
|
Revision: 204 http://svn.sourceforge.net/salto-db/?rev=204&view=rev Author: rflament Date: 2007-01-09 07:28:57 -0800 (Tue, 09 Jan 2007) Log Message: ----------- thin is more used than oci Modified Paths: -------------- salto-db-generator-eclipse/trunk/src/com/salto/db/generator/eclipse/view/AddConnectionShell.java Modified: salto-db-generator-eclipse/trunk/src/com/salto/db/generator/eclipse/view/AddConnectionShell.java =================================================================== --- salto-db-generator-eclipse/trunk/src/com/salto/db/generator/eclipse/view/AddConnectionShell.java 2006-11-22 14:03:18 UTC (rev 203) +++ salto-db-generator-eclipse/trunk/src/com/salto/db/generator/eclipse/view/AddConnectionShell.java 2007-01-09 15:28:57 UTC (rev 204) @@ -50,7 +50,7 @@ "jdbc:inetdae7:", //$NON-NLS-1$ "jdbc:freetds://", //$NON-NLS-1$ "jdbc:odbc:", //$NON-NLS-1$ - "jdbc:oracle:oci:", //$NON-NLS-1$ + "jdbc:oracle:thin:", //$NON-NLS-1$ "jdbc:db2:", //$NON-NLS-1$ "jdbc:db2:", //$NON-NLS-1$ }; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From:
<ji...@is...> - 2007-01-09 10:41:34
|
associations hibernate mapping ------------------------------ Key: SALTODB-7 URL: http://issues.salto-consulting.com/jira/browse/SALTOD= B-7 Project: Salto-db Issue Type: Improvement Components: Salto-db Generator Reporter: R=C3=A9mi Flament Assigned To: R=C3=A9mi Flament Associations are mapped using a bidirectonial one-to-many andmany-to-one, u= sing a join columns. Today if you have a parent/child relationship the generated code is : =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @OneToMany =09@JoinColumn(name =3D "PARENT_ID") =09public List<Child> getChilds() { =09=09return childs; =09} =3D=3D=3D Child =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @ManyToOne =09@JoinColumn(name =3D "PARENT_ID") =09public Parent getParent() { =09=09return parent; =09} This is ok but if you just need to update a parent, you need to fetch all t= he children and to set them back because if you don't, hibernate will gener= ate this sql query : update child set parent_id=3DNULL where parent_id=3D? This should not be the default because it is tricky (you want to update a c= olumn of a table and you end up update two columns of two tables without kn= owing it). To avoid this behavior, the generator should generate this code for the par= ent : =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @OneToMany(mappedBy=3D"parent") =09public List<Child> getChilds() { =09=09return childs; =09} --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From:
<ji...@is...> - 2007-01-09 10:41:33
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-7?page=3Dall = ] R=C3=A9mi Flament updated SALTODB-7: ------------------------------- Description:=20 Associations are mapped using a bidirectonial one-to-many andmany-to-one, u= sing a join columns. Today if you have a parent/child relationship the generated code is : =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @OneToMany =09@JoinColumn(name =3D "PARENT_ID") =09public List<Child> getChilds() { =09=09return childs; =09} =3D=3D=3D Child =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @ManyToOne =09@JoinColumn(name =3D "PARENT_ID") =09public Parent getParent() { =09=09return parent; =09} This is ok but if you just need to update a parent, you need to fetch all t= he children and to set them back because if you don't, hibernate will gener= ate this sql query : update child set parent_id=3DNULL where parent_id=3D? This should not be the default because it is tricky (you want to update a c= olumn of a table and you end up updating two columns of two tables without = knowing it). To avoid this behavior, the generator should generate this code for the par= ent : =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @OneToMany(mappedBy=3D"parent") =09public List<Child> getChilds() { =09=09return childs; =09} was: Associations are mapped using a bidirectonial one-to-many andmany-to-one, u= sing a join columns. Today if you have a parent/child relationship the generated code is : =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @OneToMany =09@JoinColumn(name =3D "PARENT_ID") =09public List<Child> getChilds() { =09=09return childs; =09} =3D=3D=3D Child =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @ManyToOne =09@JoinColumn(name =3D "PARENT_ID") =09public Parent getParent() { =09=09return parent; =09} This is ok but if you just need to update a parent, you need to fetch all t= he children and to set them back because if you don't, hibernate will gener= ate this sql query : update child set parent_id=3DNULL where parent_id=3D? This should not be the default because it is tricky (you want to update a c= olumn of a table and you end up update two columns of two tables without kn= owing it). To avoid this behavior, the generator should generate this code for the par= ent : =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D @OneToMany(mappedBy=3D"parent") =09public List<Child> getChilds() { =09=09return childs; =09} > associations hibernate mapping > ------------------------------ > > Key: SALTODB-7 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-7 > Project: Salto-db > Issue Type: Improvement > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > Associations are mapped using a bidirectonial one-to-many andmany-to-one,= using a join columns. > Today if you have a parent/child relationship the generated code is : > =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @OneToMany > =09@JoinColumn(name =3D "PARENT_ID") > =09public List<Child> getChilds() { > =09=09return childs; > =09} > =3D=3D=3D Child =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @ManyToOne > =09@JoinColumn(name =3D "PARENT_ID") > =09public Parent getParent() { > =09=09return parent; > =09} > This is ok but if you just need to update a parent, you need to fetch all= the children and to set them back because if you don't, hibernate will gen= erate this sql query : > update child set parent_id=3DNULL where parent_id=3D? > This should not be the default because it is tricky (you want to update a= column of a table and you end up updating two columns of two tables withou= t knowing it). > To avoid this behavior, the generator should generate this code for the p= arent : > =3D=3D=3D=3D Parent =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > @OneToMany(mappedBy=3D"parent") > =09public List<Child> getChilds() { > =09=09return childs; > =09} --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From:
<ji...@is...> - 2007-01-04 13:03:38
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-6?page=3Dall = ] R=C3=A9mi Flament updated SALTODB-6: ------------------------------- Component/s: Salto-db Generator > Oracle Dialect > -------------- > > Key: SALTODB-6 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-6 > Project: Salto-db > Issue Type: Improvement > Components: Salto-db Generator > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > Dialect for Oracle : org.hibernate.dialect.OracleDialect --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From:
<ji...@is...> - 2007-01-04 09:55:35
|
[ http://issues.salto-consulting.com/jira/browse/SALTODB-6?page=3Dall = ] R=C3=A9mi Flament moved FWK-10 to SALTODB-6: --------------------------------------- Project: Salto-db (was: Salto Framework) Key: SALTODB-6 (was: FWK-10) > Oracle Dialect > -------------- > > Key: SALTODB-6 > URL: http://issues.salto-consulting.com/jira/browse/SALTO= DB-6 > Project: Salto-db > Issue Type: Improvement > Reporter: R=C3=A9mi Flament > Assigned To: R=C3=A9mi Flament > > Dialect for Oracle : org.hibernate.dialect.OracleDialect --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From:
<ji...@is...> - 2007-01-04 09:51:43
|
HibernateUtil is not correct when generating ejb3 annotations ------------------------------------------------------------- Key: SALTODB-5 URL: http://issues.salto-consulting.com/jira/browse/SALTOD= B-5 Project: Salto-db Issue Type: Bug Components: Salto-db Generator Reporter: R=C3=A9mi Flament Assigned To: R=C3=A9mi Flament When I use the eclipse plugin to generate ejb3 pojos and the dao, the hiber= nateutil doesn't work because it uses a Configuration instead of an Annotat= ionConfiguration : static { =09=09try { =09=09=09sessionFactory =3D new Configuration().configure().buildSessionFac= tory();=09=09 =09=09} catch (Throwable ex) { =09=09=09throw new ExceptionInInitializerError(ex); =09=09} =09} and it should be this : static { =09=09try { =09=09=09sessionFactory =3D new AnnotationConfiguration().configure().build= SessionFactory();=09=09 =09=09} catch (Throwable ex) { =09=09=09throw new ExceptionInInitializerError(ex); =09=09} =09} --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://issues.salto-consulting.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |
From: <de...@us...> - 2006-11-22 14:03:23
|
Revision: 203 http://svn.sourceforge.net/salto-db/?rev=203&view=rev Author: denolfj Date: 2006-11-22 06:03:18 -0800 (Wed, 22 Nov 2006) Log Message: ----------- servlet api :compile -> provided Modified Paths: -------------- salto-db/trunk/pom.xml Modified: salto-db/trunk/pom.xml =================================================================== --- salto-db/trunk/pom.xml 2006-11-22 10:35:15 UTC (rev 202) +++ salto-db/trunk/pom.xml 2006-11-22 14:03:18 UTC (rev 203) @@ -84,7 +84,7 @@ <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> - <scope>compile</scope> + <scope>provided</scope> </dependency> </dependencies> <reporting> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2006-11-22 10:35:18
|
Revision: 202 http://svn.sourceforge.net/salto-db/?rev=202&view=rev Author: denolfj Date: 2006-11-22 02:35:15 -0800 (Wed, 22 Nov 2006) Log Message: ----------- Modified Paths: -------------- salto-db/trunk/pom.xml Modified: salto-db/trunk/pom.xml =================================================================== --- salto-db/trunk/pom.xml 2006-11-22 10:29:53 UTC (rev 201) +++ salto-db/trunk/pom.xml 2006-11-22 10:35:15 UTC (rev 202) @@ -2,7 +2,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>com.salto</groupId> + <groupId>com.salto.persistence</groupId> <artifactId>persistence</artifactId> <name>persistence</name> <scm> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <de...@us...> - 2006-11-22 10:29:55
|
Revision: 201 http://svn.sourceforge.net/salto-db/?rev=201&view=rev Author: denolfj Date: 2006-11-22 02:29:53 -0800 (Wed, 22 Nov 2006) Log Message: ----------- changement de group Modified Paths: -------------- salto-db/trunk/pom.xml Modified: salto-db/trunk/pom.xml =================================================================== --- salto-db/trunk/pom.xml 2006-10-13 17:49:15 UTC (rev 200) +++ salto-db/trunk/pom.xml 2006-11-22 10:29:53 UTC (rev 201) @@ -2,7 +2,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> - <groupId>com.salto.fwk</groupId> + <groupId>com.salto</groupId> <artifactId>persistence</artifactId> <name>persistence</name> <scm> @@ -24,7 +24,7 @@ </build> <packaging>jar</packaging> - <version>1.0.0-SNAPSHOT</version> + <version>1.0</version> <dependencies> <dependency> <groupId>commons-collections</groupId> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2006-10-13 17:49:23
|
Revision: 200 http://svn.sourceforge.net/salto-db/?rev=200&view=rev Author: rflament Date: 2006-10-13 10:49:15 -0700 (Fri, 13 Oct 2006) Log Message: ----------- Added Paths: ----------- salto-db-generator/tags/v1_0_14/ Copied: salto-db-generator/tags/v1_0_14 (from rev 199, salto-db-generator/trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2006-10-13 17:48:33
|
Revision: 199 http://svn.sourceforge.net/salto-db/?rev=199&view=rev Author: rflament Date: 2006-10-13 10:48:26 -0700 (Fri, 13 Oct 2006) Log Message: ----------- Added Paths: ----------- salto-db-generator-eclipse/tags/v1_0_14/ Copied: salto-db-generator-eclipse/tags/v1_0_14 (from rev 198, salto-db-generator-eclipse/trunk) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2006-10-13 17:46:54
|
Revision: 198 http://svn.sourceforge.net/salto-db/?rev=198&view=rev Author: rflament Date: 2006-10-13 10:46:41 -0700 (Fri, 13 Oct 2006) Log Message: ----------- Property Changed: ---------------- salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar Property changes on: salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2006-10-13 17:46:29
|
Revision: 197 http://svn.sourceforge.net/salto-db/?rev=197&view=rev Author: rflament Date: 2006-10-13 10:46:14 -0700 (Fri, 13 Oct 2006) Log Message: ----------- Modified Paths: -------------- salto-db-generator-eclipse/trunk/META-INF/MANIFEST.MF Added Paths: ----------- salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar Removed Paths: ------------- salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar Modified: salto-db-generator-eclipse/trunk/META-INF/MANIFEST.MF =================================================================== --- salto-db-generator-eclipse/trunk/META-INF/MANIFEST.MF 2006-10-13 17:41:30 UTC (rev 196) +++ salto-db-generator-eclipse/trunk/META-INF/MANIFEST.MF 2006-10-13 17:46:14 UTC (rev 197) @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: Salto-db Generator Eclipse Plug-in Bundle-SymbolicName: com.salto.db.generator.eclipse;singleton:=true -Bundle-Version: 1.0.13 +Bundle-Version: 1.0.14 Bundle-Activator: com.salto.db.generator.eclipse.Activator Bundle-Vendor: Salto Consulting Bundle-Localization: plugin Deleted: salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar =================================================================== (Binary files differ) Added: salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar =================================================================== --- salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar (rev 0) +++ salto-db-generator-eclipse/trunk/lib/salto-db-generator.jar 2006-10-13 17:46:14 UTC (rev 197) @@ -0,0 +1,504 @@ +PK + |
From: <rfl...@us...> - 2006-10-13 17:41:39
|
Revision: 196 http://svn.sourceforge.net/salto-db/?rev=196&view=rev Author: rflament Date: 2006-10-13 10:41:30 -0700 (Fri, 13 Oct 2006) Log Message: ----------- Modified Paths: -------------- salto-db-generator/trunk/.classpath Modified: salto-db-generator/trunk/.classpath =================================================================== --- salto-db-generator/trunk/.classpath 2006-10-13 17:39:05 UTC (rev 195) +++ salto-db-generator/trunk/.classpath 2006-10-13 17:41:30 UTC (rev 196) @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> + <classpathentry kind="lib" path="lib/velocity-dep-1.4.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> - <classpathentry kind="lib" path="lib/velocity-dep-1.4.jar"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.apache.ant_1.6.5/lib/ant.jar"/> <classpathentry kind="output" path="bin"/> </classpath> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <rfl...@us...> - 2006-10-13 17:39:12
|
Revision: 195 http://svn.sourceforge.net/salto-db/?rev=195&view=rev Author: rflament Date: 2006-10-13 10:39:05 -0700 (Fri, 13 Oct 2006) Log Message: ----------- Modified Paths: -------------- salto-db-generator/trunk/salto-db-generator.jar Modified: salto-db-generator/trunk/salto-db-generator.jar =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |