chako wrote:
Hi,
1) Is it possible to create a mysql db and a db user with hibernate mapping? If yes, has anybody a simple example?
2) With the mapping below, two varchar(255) fields (from_id and to_id) were generated. Here I need to know, what can I change in the mapping, to get: varchar(170) ???
1) Creating databases and users is an administrative function in MySQL, and every other DBMS that I know of. Hibernate doesn't handle administrative duties, just schema and data. :)
2) Use the length attribute, it's in the basic docos here on this site.