[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.dali] Re: Generate Entities not adding @Table or @Column annotations

Rick,

Yes, this is expected. The Entity Generator tries to create decent class and attribute names, so it removes underscores and converts them to camelCase for appropriate Java names. When the table or column name already makes an appropriate class or attribute name, it leaves it alone, and as a result, no @Table or @Column overrides are necessary.

Neil

Rick Crawford wrote:

Neil:

Thanks so much for the reply. Based on your remarks, I think I've figured out what's going on.

Some tables in my schema have underscores in the table name, while others do not. If there ARE underscores in the table name, the mapper includes the @Table annotation, and the class name is set to the actual table name with no underscores.

Most tables in my schema have underscores in the column names. But for the few columns that don't have underscores, there is no @Column annotation provided.

Is that the expected behavior? Thanks!!!

Rick