Sunday, 15 March 2015

Map (integer integer) mapping in hibernate -



Map (integer integer) mapping in hibernate -

how annotate bean mapped in hibernate ?

@entity public class performancevalues implements serializable{ private static final long serialversionuid = 1234850675335166109l; @id @generatedvalue(strategy = generationtype.auto) private long id; //key mass, value distance needed private map<integer, integer> masstodist; }

each performancevalues entity has unique map, , each map can related 1 performancevalues (i guess onetoone relationship)

thanks

hibernate-mapping

No comments:

Post a Comment