Hi,
the dialects property is used to define the kind of tables on mysql:
Code:
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
there are different kinds of dialects for all supported databases, for MySQL there are several: MyISAM, InnoDB and InnoDB on MySQL5. You can also create your own extending one and override the lowerlevel instructions you want.
for the primary keys use @GeneratedValue to generate autoincremental:
Code:
@Id
@GeneratedValue
public Long getId() {
return id;
}
btw, this is the wrong forum for this questions;-)