Question

I would know It is possible in java language to write function. How to check the links between each class in java ? For example School |1 ----- 1..*| Student

Thanks for advance.

Était-ce utile?

La solution

One-to-many relationships in Java is typically implemented as a List property:

class School {
    private List <Student> students;
    ...

So to know how many students does your school have you call students.size().

I hope I understood your question correctly.

Autres conseils

I am not sure if i understant you correctly. But! if you are looking for a way to create UML diagrams I can recomend you ObjectAId plugin for eclipse. Very easy to install and use.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top