Java – naming convention for O / R mapping
•
Java
I map my database tables to my Java objects Generally speaking, I name my form in the plural, because the form holding book information is called books However, Java objects represent a book, which should be called book Also for authors / author, etc
On the other hand, its simplicity is given to domain objects and tables
Is there a naming convention that people follow? I think this generally applies to applications, not just when doing O / R mapping
Solution
Your initial idea is realistic
Objects should be single, because each object is an individual
Tables should be plural because they contain all tables
Look at the built - in naming conventions in Ruby on rails. They are related
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码