quarks
quarks

Reputation: 35276

Convert POJO to Map without using Apache Commons Beanutils

Without using Apache Commons Beanutils what is the most simple way to create a method to convert a POJO into a Map<String,Object>

Upvotes: 2

Views: 1026

Answers (1)

NimChimpsky
NimChimpsky

Reputation: 47280

Without an external jar, I think the only way is to use the dark side of the force : the reflection api.

Upvotes: 8

Related Questions