This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Central Storage of classes

Dec 17th, 2010, 03:38 AM

Hello,

we have on some classes an Annotation (TechNamePrefix). The TechName should then be calculated by the TechNamePrefix and the Id (from Database) of the Object.

Now, we will get URLs with parameters like TechNamePrefix+Id (say "var23"), which we would like to determine now from the database. For this to work, we would like to register all TechNamePrefixes in a Map or something, so that we can access the class and the concrete object easily.

Is this possible? If so, how. Are annotations the way to go, or is there a better way?