> > > > > But that fails when the DDL executes because it tries to give it a length > > in > > the column definition: > > address cidr(255) NOT NULL > > > > I don't know if this will help but you could try setting the length to -1. >
Specifying the length=-1 in @Column should work. Also, you can set the FixedSizeTypeNames property on DBDicitonary, like this: <property name="openjpa.jdbc.DBDictionary" value="FixedSizeTypeNames='cidr,inet'"/> I am afraid, however, you might run into problems later as these types are not supported out-of-the-box. In case of problems you can try overriding DBDictionary or field mappings [1]. Greetings, Milosz [1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_guide_mapping_custom_field
