How can I manage student IDs?

Question:

Student IDs have grades and class numbers and it is obvious I will have duplicate ID problem next year.
What is the best way to name them?

Answer:

The IDs should be unique in a school so it would be perfect if you include their names or a year they joined in the school.