public ConfigProperty createConfigProperty ( final String groupName , final String propertyName , final String propertyValue , final ConfigProperty . PropertyType propertyType , final String description ) { pm . currentTransaction ( ) . begin ( ) ; final ConfigProperty configProperty = new ConfigProperty ( ) ; configProperty . setGroupName ( groupName ) ; configProperty . setPropertyName ( propertyName ) ; configProperty . setPropertyValue ( propertyValue ) ; configProperty . setPropertyType ( propertyType ) ; configProperty . setDescription ( description ) ; pm . makePersistent ( configProperty ) ; pm . currentTransaction ( ) . commit ( ) ; return getObjectById ( ConfigProperty . class , configProperty . getId ( ) ) ; }
Creates a ConfigProperty object .