DEV Community

saif ali
saif ali

Posted on

3

Working on Schema based database first time.

Started career one and half year back never touched the SQL database in there. so I decided to check it out for a curiosity, my previous experience was on Google Datastore, MongoDB it is my first time on a schema based Database, coding is my hobby and I'm finding happiness in that, I have few projects on gitlab, so I pulled one of my MongoDB based projects and started changing code base the starting was port 27017 to 3306. mongo repository to crud repository and few annotations.

After the basic setup, I just found the use of use of Hibernate annotations which I terrible missed on MongoDB. such as

@OneToOne @ManyToOne @OneToMany @ManyToMany @PrimaryKeyJoinColumn @JoinColumn @JoinTable @MapsId.

will keep update here once I can able find the huge differences on that.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (2)

Collapse
 
rlondner profile image
Raphael Londner

Hi Saif, maybe my blog post of MongoDB's latest JSON Schema Validation support can help?

bit.ly/jsonschema

Let me know,
Raphael.

Collapse
 
saifali40 profile image
saif ali

Hi Raphael,
Thanks for your reply and will look into that blog. May i know is there any workbench tool for mongodb?

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay