title: correct way to model isbn number in j2ee app
body: <p>I am trying out a web app using servlets and jsps and need to model isbn number of an item in my class as well as in hibernate mappings.
  Which should be the type of an isbn number?Long or String? I had come across many tutorials that use either of them..
  isbn is supposedly a 10 digit identifier..sometimes you come across numbers like 0-85131-041-9 which cannot be a Long ..Some examples use numbers without hyphens..</p>
  
  <p>So,which should be the type? Any suggestions?</p>
  
  <p>thanks</p>
  
  <p>mark</p>