All attributes within my persistence unit which have the type "MyCar" should be mapped to the same database column type "VARCHAR(255)". At the moment I have to set the @Column annotation to each and every attribute as follows:
@Column(columnDefinition = "VARCHAR(255)")
private MyCar car1;
@Column(columnDefinition = "VARCHAR(255)")
private MyCar car2;
@Column(columnDefinition = "VARCHAR(255)")
private MyCar car3;
...
Is there any way to set the columnDefinition for "MyCar" globally?