Project

General

Profile

Support for composite primary keys in dbo » CompositeKey.h

The class defining the composite primary key - Michael Wagner, 09/22/2010 08:02 PM

 
/*
* CompositeKey.h
*
* Created on: Sep 22, 2010
* Author: gci
*/

#ifndef COMPOSITEKEY_H_
#define COMPOSITEKEY_H_

namespace Domain
{

class CompositeKey
{
public:

int id_;
short idMandator_;

CompositeKey();
CompositeKey(int id, short idMandator);
CompositeKey (const CompositeKey &src);
virtual ~CompositeKey();
bool operator== (const CompositeKey& other) const;
bool operator< (const CompositeKey& other) const;
};

}

#endif /* COMPOSITEKEY_H_ */
(1-1/4)