how do i do this simple join either with hbm or fluently so i have a class like this?
public class Pet
{
public Pet() {}
public virtual int PetId { get; set; }
public virtual int PetTypeId { get; set; }
public virtual string Name { get; set; }
}
CREATE TABLE [dbo].[test_PetTypes](
[PetTypeId] [int] IDENTITY(1,1) NOT NULL,
[Name] [nchar](10) NOT NULL
) ON [PRIMARY]
CREATE TABLE [dbo].[test_Pet](
[PetId] [int] IDENTITY(1,1) NOT NULL,
[PetType] [int] NOT NULL
) ON [PRIMARY]
SELECT dbo.test_Pet.*, dbo.test_PetTypes.Name
FROM dbo.test_Pet INNER JOIN
dbo.test_PetTypes ON dbo.test_Pet.PetType = dbo.test_PetTypes.PetTypeId