We are trying to create a feature (layer) in GeoServer on top of a view in SQL Server 2008, rather than a table. We are able to create the feature, but it won't display any data because GeoServer (JDBC) can't detect a primary key to use as the FID. To the best of my knowledge, it is not possible to make a view column appear to be a primary key, and we can't figure out how to force GeoServer to recognize a specific column as the FID.
Any help would be greatly appreciated.