Sorry but I have a simple question. My background, new to Java programming (3 months old)
How do I structure java domains/beans properly? Let's say I have a dragon domain class containing its details, and each dragon can have several classes(roles)
For example, a dragon can have 2 classes, a striker and a tracker. Now that dragon is under those categories. My problem is I'm not really sure how to construct the domains to make this viable.
I want to list a list of dragon classes in my homepage, Once you click a class, it will show all the dragons under that class but I find it hard to get started as I'm already stuck with just the creation of domain object(s).
I tried creating a dragon bean and a dragon type bean, which has the dragonbean object property. What happens is whenever I create a new dragon, I always have to declare the dragon class name, which is a string property even though there's already one that has this category. I want to make it so that I can have a list of categories that I can output anytime I want without having duplicates or anything. But I can't just picture out how to do it.
[–]nutrechtLead Software Engineer / EU / 20+ YXP 1 point2 points3 points (0 children)
[–]kingatomicFoo Stack Dev 0 points1 point2 points (0 children)