DZone

This is going to be a “different” tutorial, since instead of creating code ourselves, we will use Magic to generate our code, and analyse what Magic did afterwards. If you prefer to watch a video where I demonstrate this process, you can watch the following video.

As you can see in the above video, what Magic does for us, is to provide us with a starting point, from where we can modify the code, to have it do whatever we want it to do for us. However, in order to modify the code, we’ll need to understand it. So let us walk through it step by step, starting out with creating our database, ending up with an understanding of the code, allowing us to modify it as we see fit. So let us create our database first.

Source: DZone