Portál AbcLinuxu, 10. června 2024 15:33
@Id @GeneratedValue(generator = "system-uuid") @GenericGenerator(name = "system-uuid", strategy = "uuid") @javax.persistence.Column(unique = true, nullable = false, insertable = true, updatable = false, length = 16, precision = 0) private byte[] id;Avsak vyhodi mi to nasledovnu chybu:
ERROR org.hibernate.tool.hbm2ddl.SchemaExport - Unsuccessful: create table Person (id tinyblob not null unique, version bigint, identifier integer, name varchar(255), surname varchar(255), primary key (id)) ENGINE=InnoDB 2011-06-30 09:39:25,244 [Thread-18] ERROR org.hibernate.tool.hbm2ddl.SchemaExport - BLOB/TEXT column 'id' used in key specification without a key lengthPouzivam mysql a planujem pouzit taktiez oracle. Vie mi niekto povedat kde robim chybu, uz to riesim viac ako dva dni.
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.