Announcement Announcement Module
Collapse
No announcement yet.
How to figure out a field type on a table Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to figure out a field type on a table

    Hello,
    My question is about jdbcTemplate and table fields.
    Is there any way to know the field type from a table using jdbcTemplate?. My goal is to know the field type and then insert its value specifying that type. I was seeking for an answer through the web but it was hard to find something useful.
    Thanks in advance.

    Héctor.

  • #2
    Hello

    My goal is to know the field type and then insert its value specifying that type.
    I think is not possible and has no sense.

    Read carefully the JdbcTemplate API

    You should know before the table's types fields to then you can create the POJO specifying the properties type according with the table's type fields, Spring should do the mapping or conversion when you work with JdbcTemplate around your POJO

    BTW Even if you will get a solution, why do you want resolve such situation?

    Comment

    Working...
    X