Announcement Announcement Module
Collapse
No announcement yet.
Loading Data from Codes Table Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Loading Data from Codes Table

    Hi,

    Need some advise.

    Not sure whether I'm posting in the right Topic.

    If I have some code tables in my application, say a database table containing country codes and country description.
    Table: COUNTRY
    Columns: CTY_CODE, CTY_DESC

    Does Spring have a way for me to load all the data during starting of my app server and how do I access the data?

    Thank you very much.

  • #2
    Use some sort of template (Hibernate, JDBC, SqlMaps, ...) or some DAOSupport. With it, simply load what you want - on initialization. Store it in a singleton bean.

    My suggestion would be to use Hibernate second level cache.

    Comment

    Working...
    X