GithubHelp home page GithubHelp logo

Comments (6)

Raysmond avatar Raysmond commented on April 29, 2024

Did you read my code or not?

from springblog.

tacianosilva avatar tacianosilva commented on April 29, 2024

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.

tacianosilva avatar tacianosilva commented on April 29, 2024

Hi @Raysmond,

What did you think of the results of Design Tests?

Best regards!

from springblog.

Raysmond avatar Raysmond commented on April 29, 2024

If you indeed study my code, you'll know there's no such problem.

from springblog.

tacianosilva avatar tacianosilva commented on April 29, 2024

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.

Raysmond avatar Raysmond commented on April 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.