I have a enity, that maps to a table that has no Column name called "id".

When ever I start roo it automatically regenerates my _roo_entity.aj and _roo_ToString.aj files.

and includes

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id")
private Long AgreementEntity.id;

Since the table in question does not have a id table this will cause my build to fail.

Also since we have a lot of tables to map we created a JPA project and reverse engineered a number of entitys.

This worked but when we added the

@RooJavaBean
@RooToString
@RooEntity

It not only generated the Ids but also for some files generated them as

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "_id")
private Long AgreementEntity.id;

And none of our tables have a Column name "_id".

It might be confusion over the @id, in the first instance we have

@Id
@Column(name = "agreement_id")
private Integer agreementId;

Will this force roo to generate

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "_id")
private Long AgreementEntity.id;

In the second case I am not sure, it might be to do with mapping

fileA Has more than one FileB
Id fileAId

When generated fileA

has @Column(name = "id")

When generated fileB

has @Column(name = "_id")


Anyone else seen this problem.

Thanks for any help I want to try an stick with the reverse engineer mapping has its a good easy tool to use.