Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何使用 Active JDBC 获取列数据类型?可能吗?出于自动化目的,我需要模型每一列的数据类型。
提前致谢 。
是的,您可以通过以下方式获得MetaModel:
MetaModel
MetaModel mm = person.getMetaModel(); Map<String, ColumnMetadata> cmMap = mm.getColumnMetadata(); ColumnMetadata cm = cmMap.get("first_name"); String typeName = cm.getTypeName();