Permalink
Browse files

fixed table mapping issue

  • Loading branch information...
1 parent 3a334cd commit 7d411faa5238897decf55d0736224af5eedad30a @rufiao committed Feb 4, 2011
Showing with 6 additions and 7 deletions.
  1. +2 −0 .gitignore
  2. +2 −5 build/build.xml
  3. +1 −1 build/version.properties
  4. +1 −1 src/main/net/sf/persist/TableMapping.java
View
@@ -1,5 +1,7 @@
bin
build/work
build/lib/jdbc-drivers/ojdbc14.jar
+build/release
.pydevproject
*.pyc
+*~
View
@@ -77,7 +77,6 @@
<delete dir="build/release/doc" includeEmptyDirs="true" failonerror="false" />
<mkdir dir="build/release/doc" />
<mkdir dir="build/release/doc/api" />
- <mkdir dir="build/release/doc/manual" />
<!-- javadoc -->
<javadoc destdir="build/release/doc/api" encoding="UTF-8" docencoding="iso-8859-1" author="true" version="true" use="false" breakiterator="true" windowtitle="${project.title}" classpathref="project.classpath" stylesheetfile="build/javadoc/stylesheet.css">
@@ -87,10 +86,8 @@
<link href="http://java.sun.com/j2se/1.5/docs/api" offline="true" packagelistLoc="build/javadoc/j2se-1.5" />
</javadoc>
- <!-- manual -->
- <copy todir="build/release/doc">
- <fileset dir="doc" />
- </copy>
+ <copy todir="build/release/doc" file="README.textile"/>
+
</target>
<target name="test" depends="compile">
View
@@ -1,4 +1,4 @@
# $Id$
-build.version=1.1
+build.version=1.1.1
@@ -149,7 +149,7 @@ public TableMapping(final DatabaseMetaData metaData, final Class objectClass, fi
final String noAutoColumns = join(notAutoGeneratedColumns, "", ",");
final String allPlaceholders = multiply("?", columns.length, ",");
final String noAutoPlaceholders = multiply("?", notAutoGeneratedColumns.length, ",");
- final String where = join(primaryKeys, "=?", ",");
+ final String where = join(primaryKeys, "=?", " and ");
final String updateSet = join(notPrimaryKeys, "=?", ",");
// assemble crud sql statements

0 comments on commit 7d411fa

Please sign in to comment.