Caused by: java.sql.SQLException: No database selected
don't know the reason.But I modify the file
<id name="id" type="java.lang.Integer">
<column name="id" />
<generator class="native"></generator>
</id>
increase->>>>>>>>native.
and it's OK