Comments (6)
Did you read my code or not?
from springblog.
Hi @Raysmond,
I read your code. I tested the design rules recommended the Hibernate documentation and the JPA specification. I found the following results:
Rule NoArgumentConstructorRule: All entities passed (They are OK).
Rule ProvideIdentifierPropertyRule: All entities passed (They are OK).
Rule NoFinalClassRule: All entities passed (They are OK).
Rule ProvideGetsSetsFieldsRule: All entities passed (They are OK).
Rule HashCodeAndEqualsRule: All entities failed (Recommendation Hibernate Docs).
com.raysmond.blog.models.Tag
com.raysmond.blog.models.User
com.raysmond.blog.models.Setting
com.raysmond.blog.models.Post
Rule UseSetCollectionRule: Two entities failed.
com.raysmond.blog.models.Tag
com.raysmond.blog.models.User
Rule ImplementsSerializableRule: All entities failed (Recommendation of the JPA Spec).
com.raysmond.blog.models.Tag
com.raysmond.blog.models.User
com.raysmond.blog.models.Setting
com.raysmond.blog.models.Post
Do you think these software projects have latent bugs caused by the design rules violations or is the rule unnecessary?
from springblog.
Hi @Raysmond,
What did you think of the results of Design Tests?
Best regards!
from springblog.
If you indeed study my code, you'll know there's no such problem.
from springblog.
Really your code is correct. My tests did not check the superclass.
I have only one question:
Why the post attribute in the User class is List (ArrayList) and It is not Set (HashSet) as the others?
Thank you for your attention and your time. You helped me a lot.
from springblog.
Are there any big problems using List? Cause I think it's ok with me. Besides, the post list is user class is never used.
from springblog.
Related Issues (20)
- 关于计算页面响应时间
- 登录时后台提示报错,这个怎么解决 HOT 1
- Error resolving template "home/index", template might not exist or might not be accessible by any of the configured Template Resolvers HOT 1
- 我咋没看见数据库文件,其他人怎么部署成功的??? HOT 1
- init application JPA error or database error HOT 4
- hello Raysmond HOT 1
- This application has no explicit mapping for /error, so you are seeing this as a fallback. HOT 3
- I countinue to code this engine HOT 1
- 我也参考着写了一个
- empty page -> http://raysmond.com/ HOT 1
- when post : getOutputStream() has already been called for this response HOT 1
- 无法访问 HOT 1
- 你好 请问有没有兴趣来阿里
- js和一些css静态资源请求不到。json转换报错。 HOT 14
- Hello, can you provide the next SQL file?
- 缺少一些css和js文件? HOT 3
- the css/js dosen't work.
- Add Index on posts to Accelerate Query
- 中文开发和部署文档没备案打不开了 HOT 1
- Download all dependencies HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from springblog.