Skip to content

nickcaballero/datanucleus-libphonenumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datanucleus-libphonenumber

Build Status

TypeConverter for storing libphonenumber

This provides a DataNucleus TypeConverter plugin for formatting a phone number field and parsing it using https://code.google.com/p/libphonenumber/.

Different formatting types are supported through different type converters. See https://github.com/nickcaballero/datanucleus-libphonenumber/blob/master/src/main/resources/plugin.xml

Usage

public class Sample {
    @Persistent(defaultFetchGroup = "true")
    @Extension(vendorName = "datanucleus", key = "type-converter-name", value = "libphonenumber-international")
    Phonenumber.PhoneNumber internationalPhone;

    @Persistent(defaultFetchGroup = "true")
    @Extension(vendorName = "datanucleus", key = "type-converter-name", value = "libphonenumber-e164")
    Phonenumber.PhoneNumber e164Phone;
}

About

TypeConverter for storing libphonenumber

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages