Most large law firms are hiring fewer first-year associates than they did a few years ago. But at one of the world’s largest in-house legal departments, just the opposite is happening.

This fall, Hewlett-Packard is going where few corporate law departments have gone before: hiring fresh graduates for full-time in-house positions.