質問

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.

役に立ちましたか?

解決

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.

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top